@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument_sans_regular.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("assets/fonts/instrument_sans_medium.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("assets/fonts/instrument_sans_semibold.ttf") format("truetype"); }

:root {
  --ground: #f4f2ec;
  --ink: #141414;
  --muted: #6b6862;
  --line: rgba(20, 20, 20, 0.08);
  --safe: #1e9e6a;
  --caution: #c08400;
  --danger: #d4362a;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--ground) radial-gradient(60% 40% at 50% 0%, #fff 0%, transparent 70%) no-repeat;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* privacy and terms: the small Liqor mark at the top */
.nav {
  position: absolute;
  top: 24px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.brand img { width: 24px; height: 24px; }

/* desktop: the hero and steps scroll on the left, the Seeker stays pinned on the right */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.logo { filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.14)); }

h1 {
  margin-top: 28px;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 560px;
}

.muted { color: #8a8a8a; }

.cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a0a0a;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 150ms, transform 150ms;
}

.cta:hover { background: #222; }
.cta:active { transform: scale(0.98); }

.runs-on {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #8a8a8a;
}

.tiles { display: inline-flex; isolation: isolate; }

.tile {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.tile + .tile { margin-left: -8px; }
.tile img { width: 100%; height: 100%; display: block; }

/* the Seeker: the frame sits on top, the screen shows through its transparent display */
.phone {
  position: relative;
  aspect-ratio: 532 / 1144;
  width: var(--pw, 300px);
}

.phone .screen {
  position: absolute;
  left: 4.323%;
  top: 1.573%;
  width: 91.353%;
  height: 96.329%;
  overflow: hidden;
  background: var(--ground);
  border-radius: 9% / 4.2%;
}

.phone .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 450ms ease, transform 700ms var(--ease);
}

.phone .screen img.is-on { opacity: 1; transform: none; }

.phone .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.22)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
}

/* the tour: the phone stays pinned while the steps scroll past it */
.tour {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 80px;
  width: min(1080px, 90vw);
  margin: 0 auto;
}

.stage {
  position: sticky;
  top: calc(50vh - var(--pw) * 1144 / 532 / 2);
  height: max-content;
  --pw: min(340px, calc((100vh - 96px) * 532 / 1144));
}

.steps { list-style: none; }

.step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 440px;
  opacity: 0.28;
  transition: opacity 400ms ease;
}

.step:last-child { min-height: 80vh; }
.step.is-active { opacity: 1; }

.step .num {
  font-size: 13px;
  font-weight: 500;
  color: #8a8a8a;
  letter-spacing: 0.04em;
}

.step h2 {
  margin-top: 10px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.step p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.levels { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }

.level {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.level-safe { background: #e3f3eb; color: #14653f; }
.level-caution { background: #faf0d4; color: #674600; }
.level-danger { background: #fce9e7; color: #8b211a; }

.outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 24px 120px;
}

.outro h2 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.fine {
  margin-top: 22px;
  font-size: 13px;
  color: #8a8a8a;
}

.fine a { text-underline-offset: 2px; }
.fine a:hover { color: var(--ink); }

/* privacy and terms */
.doc {
  width: min(680px, 90vw);
  margin: 0 auto;
  padding: 120px 0 96px;
}

.doc h1 { margin-top: 0; font-size: 36px; }
.doc .updated { margin-top: 10px; font-size: 14px; color: #8a8a8a; }
.doc h2 { margin-top: 36px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.doc p, .doc li { margin-top: 10px; font-size: 16px; line-height: 1.6; color: #3a3833; }
.doc ul { padding-left: 20px; }
.doc a { text-underline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .anim { animation: rise 500ms ease-out both; }
  h1.anim { animation-delay: 60ms; }
  .cta.anim { animation-delay: 120ms; }
  .runs-on.anim { animation-delay: 180ms; }
  .stage.anim { animation-delay: 240ms; }
}

@media (prefers-reduced-motion: reduce) {
  .phone .screen img, .step { transition: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* phones: the Seeker pins to the top and the steps scroll up beneath it */
@media (max-width: 820px) {
  .nav { left: 20px; right: 20px; }
  .hero { order: -2; min-height: 0; padding: 72px 24px 40px; align-items: center; text-align: center; }
  h1 { font-size: 30px; }
  .tour { display: flex; flex-direction: column; width: 100%; gap: 0; }
  .flow { display: contents; }
  .stage {
    order: -1;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 16px 0 20px;
    background: var(--ground);
    --pw: min(250px, 25svh, 62vw);
  }
  .steps { padding: 0 24px; }
  .step, .step:last-child {
    min-height: 38svh;
    padding: 0;
    align-items: center;
    text-align: center;
    max-width: none;
  }
  .step:last-child { min-height: 50svh; justify-content: flex-start; padding-top: 6svh; }
  .step h2 { font-size: 24px; }
  .step p { font-size: 15px; }
  .levels { justify-content: center; }
  .outro { padding: 48px 24px 96px; }
  .outro h2 { font-size: 28px; }
  .doc { padding-top: 96px; }
  .doc h1 { font-size: 30px; }
}
