/* Karma's own look, carried over from the app (ui/customer/theme.py) and the setup window: red on black, chrome
   silver, one thin red rule; Bahnschrift for the brand voice (it ships with Windows, where Karma runs), Segoe UI
   for text. No outside fonts, no scripts: the page asks nobody else for anything. */
:root {
  --black: #070708;
  --char: #121316;
  --line: #2a2d33;
  --red: #e1192c;
  --red-hi: #f0384a;
  --red-deep: #8e0e1a;
  --silver: #c9cdd3;
  --silver-dim: #868c96;
  --white: #f5f6f8;
  --brand: Bahnschrift, "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  --text: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--black);
  color-scheme: dark;
  scrollbar-color: var(--line) var(--black);
  -webkit-text-size-adjust: 100%;
}

::selection {
  background: var(--red);
  color: #fff;
}

body {
  margin: 0;
  font: 400 1.0625rem/1.55 var(--text);
  color: var(--silver);
}

/* the stage: a red light from above and two thin arcs, as in Karma's setup window */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  padding: clamp(28px, 7vh, 80px) 20px clamp(28px, 6vh, 64px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 64% 58% at 50% -8%, rgba(158, 16, 28, 0.6), rgba(104, 10, 18, 0.26) 44%, rgba(7, 7, 8, 0) 74%),
    var(--black);
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 1px solid rgba(225, 25, 44, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.stage::before {
  width: 1040px;
  height: 1040px;
  top: -560px;
  margin-left: -520px;
}

.stage::after {
  width: 1560px;
  height: 1560px;
  top: -900px;
  margin-left: -780px;
  border-color: rgba(225, 25, 44, 0.11);
}

main {
  position: relative;
  z-index: 1;
  width: min(100%, 38rem);
  text-align: center;
}

h1 {
  margin: 0;
  line-height: 0;
}

.mark {
  display: block;
  width: min(100%, 35rem);
  height: auto;
  margin: 0 auto;
}

/* the one authored moment: the mark comes out of the light */
@media (prefers-reduced-motion: no-preference) {
  .mark {
    animation: arrive 1.1s var(--out);
  }

  .get,
  .file,
  .rule,
  .steps,
  .keep {
    animation: settle 1.05s var(--out);
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    filter: blur(16px) brightness(1.9);
    transform: scale(1.05);
  }
}

/* (no delay and no fill: where an animation never runs, everything is simply there) */
@keyframes settle {
  0%,
  16% {
    opacity: 0;
    transform: translateY(10px);
  }
}

.get {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-width: min(100%, 19rem);
  margin-top: clamp(4px, 1.5vh, 16px);
  padding: 1.08em 2.2em 1em;
  font: 700 1.25rem/1 var(--brand);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(var(--red-hi), var(--red));
  border: 1px solid rgba(255, 128, 142, 0.5);
  border-radius: 10px;
  box-shadow: 0 12px 30px -10px rgba(225, 25, 44, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s var(--out), box-shadow 0.2s var(--out), filter 0.2s var(--out);
}

.get svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  transition: transform 0.25s var(--out);
}

.get:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -10px rgba(225, 25, 44, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.get:hover svg {
  transform: translateY(2px);
}

.get:active {
  filter: brightness(0.95);
  transform: translateY(1px);
  box-shadow: 0 6px 18px -8px rgba(225, 25, 44, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.get:focus-visible,
.back:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.file {
  margin: 1.1rem 0 0;
  font: 500 0.875rem/1.4 var(--brand);
  letter-spacing: 0.14em;
  color: var(--silver-dim);
}

.rule {
  height: 1px;
  margin: clamp(1.75rem, 5vh, 2.75rem) auto;
  border: 0;
  background: linear-gradient(90deg, rgba(225, 25, 44, 0), rgba(225, 25, 44, 0.75) 50%, rgba(225, 25, 44, 0));
}

.steps {
  display: inline-grid;
  gap: 1rem;
  max-width: 30rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}

.steps li {
  position: relative;
  min-height: 2rem;
  padding: 0.18rem 0 0 3rem;
  counter-increment: step;
  text-wrap: pretty;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font: 600 0.9375rem/1 var(--brand);
  font-variant-numeric: tabular-nums;
  color: var(--silver-dim);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.steps li:first-child::before {
  color: var(--white);
  border: 2px solid var(--red);
}

.steps b {
  font-weight: 600;
  color: var(--white);
}

.keep {
  margin: clamp(1.75rem, 5vh, 2.75rem) 0 0;
  font-size: 0.9375rem;
  color: var(--silver-dim);
  text-wrap: balance;
}

/* the page for an address that does not exist */
.lost {
  margin: 0.5rem 0 0;
  font: 600 clamp(1.5rem, 4.5vw, 2rem)/1.2 var(--brand);
  letter-spacing: 0.02em;
  color: var(--white);
  text-wrap: balance;
}

.lost + p {
  margin: 0.75rem 0 1.75rem;
  color: var(--silver-dim);
}

@media (max-width: 30rem) {
  body {
    font-size: 1rem;
  }

  .get {
    width: 100%;
    font-size: 1.1875rem;
  }

  .steps li {
    padding-left: 2.75rem;
  }

  .file {
    letter-spacing: 0.1em;
  }
}

@media (max-width: 22.5rem) {
  .file {
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
  }
}
