/* RunStall coming-soon page. Colours from design/logo/README.md: Indigo #3641BC, Ink #15192B, Paper #F9F6F2, Night #0E111D. */

:root {
  --paper: #F9F6F2;
  --ink: #15192B;
  --indigo: #3641BC;
  --night: #0E111D;

  --bg: var(--paper);
  --text: var(--ink);
  --muted: #575D72;
  --accent: var(--indigo);
  --accent-wash: linear-gradient(90deg, rgba(54, 65, 188, .16), rgba(210, 119, 76, .24));
  --surface: #FFFFFF;
  --line: rgba(21, 25, 43, .09);
  --numeral: rgba(21, 25, 43, .10);
  --mark: var(--indigo);
  --word: var(--ink);
  --chip-bg: #FFFFFF;
  --chip-text: var(--ink);
  --chip-sub: #5A6075;
  --shadow-sm: 0 1px 2px rgba(21, 25, 43, .05);
  --shadow-lg: 0 1px 2px rgba(21, 25, 43, .06), 0 18px 40px -14px rgba(21, 25, 43, .28);
  --glow-1: rgba(54, 65, 188, .14);
  --glow-2: rgba(210, 119, 76, .13);
  --button-bg: var(--indigo);
  --button-hover: #2E37A6;
  --quiet-border: rgba(21, 25, 43, .18);
  --quiet-hover: rgba(54, 65, 188, .07);
  --status-bg: rgba(54, 65, 188, .08);
  --status-text: var(--indigo);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);
    --text: #F4F2EE;
    --muted: #A9AEC3;
    --accent: #A9B1FF;
    --accent-wash: linear-gradient(90deg, rgba(169, 177, 255, .22), rgba(232, 162, 124, .22));
    --surface: #161A2B;
    --line: rgba(255, 255, 255, .09);
    --numeral: rgba(255, 255, 255, .10);
    --mark: #FFFFFF;
    --word: #F4F2EE;
    --chip-bg: #1B2034;
    --chip-text: #F4F2EE;
    --chip-sub: #A9AEC3;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 40px -14px rgba(0, 0, 0, .7);
    --glow-1: rgba(70, 82, 214, .28);
    --glow-2: rgba(210, 119, 76, .09);
    --button-bg: #4552D9;
    --button-hover: #5763E3;
    --quiet-border: rgba(255, 255, 255, .22);
    --quiet-hover: rgba(255, 255, 255, .06);
    --status-bg: rgba(169, 177, 255, .10);
    --status-text: #C9CEFF;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(56rem 38rem at 88% -8%, var(--glow-1), transparent 62%),
    radial-gradient(40rem 30rem at -12% 34%, var(--glow-2), transparent 62%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--button-bg);
  color: #FFFFFF;
  font-weight: 650;
  text-decoration: none;
}

.skip:focus { top: 16px; }

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
}

.brand-mark { width: 36px; height: 36px; fill: var(--mark); flex: none; }
.brand-word { width: auto; height: 22px; flex: none; }
.word-stroke { stroke: var(--word); }
.word-fill { fill: var(--word); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--status-bg);
  color: var(--status-text);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s ease-out 2; /* motion stops within five seconds (WCAG 2.2.2) */
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
  70% { box-shadow: 0 0 0 9px color-mix(in srgb, currentColor 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent); }
}

/* Hero */

.hero {
  display: grid;
  gap: 44px;
  align-items: center;
  padding-block: 20px 64px;
}

.hero-copy { max-width: 620px; }

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 1.2rem + 5.6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 800;
}

.accent {
  color: var(--accent);
  background-image: var(--accent-wash);
  background-repeat: no-repeat;
  background-size: 100% .18em;
  background-position: 0 90%;
}

.lead {
  margin: 26px 0 0;
  max-width: 34ch;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--button-bg);
  color: #FFFFFF;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(21, 25, 43, .12), 0 10px 22px -10px rgba(54, 65, 188, .65);
  transition: transform .16s ease, background-color .16s ease;
}

.button:hover { background: var(--button-hover); transform: translateY(-1px); }

.button-quiet {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--quiet-border);
}

.button-quiet:hover { background: var(--quiet-hover); }

/* Hero illustration: one composition that scales with its own width */

.art {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 10 / 11;
  container-type: inline-size;
}

.art::after {
  content: "";
  position: absolute;
  left: 8cqi;
  right: 8cqi;
  bottom: -4cqi;
  height: 9cqi;
  background: radial-gradient(closest-side, rgba(21, 25, 43, .20), transparent);
}

.arch {
  position: absolute;
  left: 12cqi;
  right: 12cqi;
  top: 4cqi;
  bottom: 2cqi;
  overflow: hidden;
  border-radius: 38cqi 38cqi 5cqi 5cqi;
  background:
    radial-gradient(70cqi 46cqi at 50% 6%, rgba(255, 255, 255, .24), transparent 62%),
    linear-gradient(180deg, #4A55D6 0%, #3641BC 50%, #2A3299 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 32px 64px -32px rgba(54, 65, 188, .7);
}

.arch::before,
.arch::after {
  content: "";
  position: absolute;
  border: .4cqi solid rgba(255, 255, 255, .15);
  border-bottom: 0;
}

.arch::before { inset: 4.5cqi 4.5cqi -1cqi; border-radius: 33.5cqi 33.5cqi 0 0; }
.arch::after { inset: 9cqi 9cqi -1cqi; border-radius: 29cqi 29cqi 0 0; border-color: rgba(255, 255, 255, .09); }

.phone {
  position: absolute;
  left: 50%;
  top: 12cqi;
  width: 40cqi;
  height: 87cqi;
  padding: 1.4cqi;
  border-radius: 6.8cqi;
  transform: translateX(-50%);
  background: linear-gradient(160deg, #2A2F45, #0E111D 42%);
  box-shadow:
    inset 0 0 0 .35cqi rgba(255, 255, 255, .10),
    0 5cqi 10cqi -3cqi rgba(14, 17, 29, .55),
    0 1cqi 2cqi rgba(14, 17, 29, .30);
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7cqi 3cqi 3cqi;
  overflow: hidden;
  border-radius: 5.4cqi;
  background: #FBF9F6;
  color: #15192B;
  line-height: 1.25;
}

.island {
  position: absolute;
  top: 1.8cqi;
  left: 50%;
  width: 10.5cqi;
  height: 2.9cqi;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #0E111D;
}

.store-bar {
  display: flex;
  align-items: center;
  gap: 1.5cqi;
  font-size: 2.5cqi;
  font-weight: 700;
  letter-spacing: -.01em;
}

.store-avatar {
  flex: none;
  width: 4.6cqi;
  height: 4.6cqi;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8A27C, #B9532D);
}

.photo {
  display: grid;
  place-items: center;
  height: 36cqi;
  margin-top: 2.4cqi;
  overflow: hidden;
  border-radius: 4cqi;
  background: linear-gradient(180deg, #F7E6D7 0%, #F2D9C4 63%, #E9C8AD 63%, #EDD0B8 100%);
}

.photo svg { width: 84%; height: 84%; }

.thumbs {
  display: flex;
  gap: 1.6cqi;
  margin-top: 2cqi;
}

.thumb {
  width: 6.6cqi;
  height: 6.6cqi;
  border-radius: 1.7cqi;
}

.thumb-1 {
  background: radial-gradient(circle at 50% 60%, #C8643B 0 27%, transparent 29%), linear-gradient(180deg, #F7E6D7, #EDD0B8);
  box-shadow: 0 0 0 .5cqi #FBF9F6, 0 0 0 .9cqi #3641BC;
}

.thumb-2 { background: radial-gradient(circle at 50% 60%, #6E7F4F 0 27%, transparent 29%), linear-gradient(180deg, #EEF0E4, #DDE2CC); }
.thumb-3 { background: radial-gradient(circle at 50% 60%, #3B3F55 0 27%, transparent 29%), linear-gradient(180deg, #ECEBF2, #D9D8E4); }

.product {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 2cqi;
  row-gap: .4cqi;
  align-items: baseline;
  margin-top: 2.6cqi;
}

.product-name { grid-column: 1 / -1; font-size: 2.9cqi; font-weight: 750; letter-spacing: -.015em; white-space: nowrap; }
.product-meta { grid-row: 2; font-size: 2.1cqi; color: #5A6075; white-space: nowrap; }

.product-price {
  grid-column: 2;
  grid-row: 2;
  font-size: 3.3cqi;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #3641BC;
}

.buy {
  display: grid;
  place-items: center;
  height: 7.2cqi;
  margin-top: auto;
  border-radius: 999px;
  background: #3641BC;
  color: #FFFFFF;
  font-size: 2.6cqi;
  font-weight: 700;
  box-shadow: 0 1.4cqi 2.6cqi -1.2cqi rgba(54, 65, 188, .7);
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 2cqi;
  padding: 2cqi 3.4cqi 2cqi 2cqi;
  border-radius: 3.8cqi;
  background: var(--chip-bg);
  color: var(--chip-text);
  box-shadow: var(--shadow-lg);
  font-size: 2.8cqi;
  line-height: 1.25;
  white-space: nowrap;
  animation: float 4.2s ease-in-out; /* the chips rise once in turn and settle within five seconds */
}

.chip-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 7.4cqi;
  height: 7.4cqi;
  border-radius: 2.3cqi;
  background: linear-gradient(180deg, #4A55D6, #3641BC);
}

.chip-icon svg {
  width: 4.2cqi;
  height: 4.2cqi;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip-text { display: grid; }
.chip-title { font-weight: 700; }
.chip-sub { font-size: 2.4cqi; color: var(--chip-sub); }

.chip-photo { left: 2cqi; top: 27cqi; }
.chip-price { right: 2cqi; top: 53cqi; animation-delay: .3s; }
.chip-order { left: 4cqi; top: 79cqi; animation-delay: .6s; }

@container (max-width: 420px) {
  .chip { font-size: 3cqi; }
  .chip-sub { font-size: 2.5cqi; }
  .chip-photo, .chip-order { left: 0; }
  .chip-price { right: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.6cqi); }
}

/* Steps */

.steps { padding-block: 16px 72px; }

.steps h2,
.follow h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.steps h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); }

.step-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 26px 26px 28px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: linear-gradient(180deg, #4A55D6, #3641BC);
  box-shadow: 0 12px 22px -12px rgba(54, 65, 188, .9);
}

.step-badge svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--numeral);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 750;
  letter-spacing: -.015em;
}

.step p { margin: 6px 0 0; color: var(--muted); }

/* Follow */

.follow { padding-block: 0 56px; }

.follow-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 60px);
  border-radius: 30px;
  background:
    radial-gradient(42rem 22rem at 0% 0%, rgba(255, 255, 255, .17), transparent 62%),
    linear-gradient(135deg, #404BCB 0%, #3641BC 46%, #2A3299 100%);
  color: #FFFFFF;
  box-shadow: 0 30px 60px -32px rgba(54, 65, 188, .6);
}

.follow-mark {
  position: absolute;
  right: -72px;
  bottom: -96px;
  width: 220px;
  height: 220px;
  fill: #FFFFFF;
  opacity: .08;
}

.follow h2 {
  position: relative;
  max-width: 17ch;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.9rem);
}

.follow p {
  position: relative;
  max-width: 46ch;
  margin: 14px 0 0;
  color: #E6E8F7;
  font-size: 1.0625rem;
}

.follow p a {
  color: #FFFFFF;
  font-weight: 650;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.follow :focus-visible { outline-color: #FFFFFF; }

.socials {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
  color: #FFFFFF;
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color .16s ease, transform .16s ease;
}

.socials a:hover { background: rgba(255, 255, 255, .2); transform: translateY(-1px); }

.socials svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 4px 40px;
  color: var(--muted);
  font-size: .9375rem;
}

.foot p { margin: 0; }
.foot a { display: inline-flex; align-items: center; min-height: 48px; text-underline-offset: 3px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand svg { fill: var(--mark); flex: none; }

/* Wider screens */

@media (min-width: 760px) {
  .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50px;
    right: -16px;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transform: rotate(45deg);
    opacity: .55;
  }

  .follow-mark { right: -40px; bottom: -70px; width: 340px; height: 340px; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 64px;
    padding-block: 36px 96px;
  }

  .top { padding-block: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Page not found */

.missing { padding-block: 48px 96px; max-width: 760px; margin-inline: 0; }
.missing h1 { margin-top: 24px; font-size: clamp(2.2rem, 1.3rem + 4vw, 4rem); }
@media (min-width: 1240px) { .missing { margin-inline: auto; max-width: 1200px; } .missing .lead { max-width: 40ch; } }
