/* PicPursuit — marketing site design system.
 *
 * Mirrors the app's "instant-photo print" identity (lib/theme/app_tokens.dart):
 * two neutral, slightly warm grounds — Sunrise (light) and Dusk (dark) — so the
 * photos supply the color, with the logo's green→blue→violet spectrum as the
 * single accent.
 *
 * Nothing here is app functionality: this surface is an ad for the app.
 */

/* ---------------------------------------------------------------- tokens -- */

:root {
  /* Grounds & surfaces */
  --ground: #eae6de;
  --ground-2: #e2ddd3;
  --surface: #ffffff;
  --surface-2: #f4f0e8;

  /* Ink & lines */
  --ink: #1e1b18;
  --ink-soft: #544e46;
  --muted: #8e887d;
  --hair: #ded8cc;

  /* The "camera body" action button */
  --camera: #211f1d;
  --camera-ink: #ffffff;

  /* Semantic */
  --vote: #1489c4;
  --live: #ee3d38;

  /* The instant-film frame — white in both themes */
  --paper: #ffffff;
  --paper-ink: #1e1b18;
  --paper-sub: #8b857b;

  /* Medals */
  --gold: #e0a93b;
  --silver: #a6acb3;
  --bronze: #c07c43;

  /* Brand spectrum (theme-independent) */
  --sp1: #45c97c;
  --sp2: #22a7ea;
  --sp3: #4c7be6;
  --sp4: #8360d6;
  --spectrum: linear-gradient(90deg, var(--sp1), var(--sp2) 40%, var(--sp3) 68%, var(--sp4));
  --spectrum-v: linear-gradient(160deg, var(--sp1), var(--sp2) 40%, var(--sp3) 68%, var(--sp4));

  /* The empty-viewfinder gradient from the app's Today hero */
  --viewfinder: linear-gradient(135deg, #23252b 0%, #34373f 55%, #1b1d22 100%);

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06), 0 4px 12px rgb(0 0 0 / 0.05);
  --shadow-md: 0 8px 28px rgb(0 0 0 / 0.10);
  --shadow-print: 0 8px 16px rgb(0 0 0 / 0.18);

  --page: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #161518;
    --ground-2: #100f12;
    --surface: #211f24;
    --surface-2: #2b2830;
    --ink: #f3efea;
    --ink-soft: #c8c2bb;
    --muted: #8b867e;
    --hair: #322f37;
    --camera: #0e0d10;
    --vote: #3fb6ea;
    --live: #ff5a50;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 12px rgb(0 0 0 / 0.3);
    --shadow-md: 0 8px 28px rgb(0 0 0 / 0.45);
    color-scheme: dark;
  }
}

/* Explicit choice from the header toggle wins over the system preference. */
:root[data-theme="light"] {
  --ground: #eae6de;
  --ground-2: #e2ddd3;
  --surface: #ffffff;
  --surface-2: #f4f0e8;
  --ink: #1e1b18;
  --ink-soft: #544e46;
  --muted: #8e887d;
  --hair: #ded8cc;
  --camera: #211f1d;
  --vote: #1489c4;
  --live: #ee3d38;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06), 0 4px 12px rgb(0 0 0 / 0.05);
  --shadow-md: 0 8px 28px rgb(0 0 0 / 0.10);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ground: #161518;
  --ground-2: #100f12;
  --surface: #211f24;
  --surface-2: #2b2830;
  --ink: #f3efea;
  --ink-soft: #c8c2bb;
  --muted: #8b867e;
  --hair: #322f37;
  --camera: #0e0d10;
  --vote: #3fb6ea;
  --live: #ff5a50;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 12px rgb(0 0 0 / 0.3);
  --shadow-md: 0 8px 28px rgb(0 0 0 / 0.45);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base -- */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-weight: 800;
}

p {
  margin: 0 0 1rem;
}

:focus-visible {
  outline: 2px solid var(--sp2);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------ primitives -- */

/* Monospace "eyebrow": uppercase, wide-tracked, small — the app's label role. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.spectrum-bar {
  height: 5px;
  border-radius: 100px;
  background: var(--spectrum);
}

/* A small mono status pill (LIVE, VOTING, RESULTS). */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 5px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--live);
  background: color-mix(in srgb, var(--live) 14%, transparent);
  white-space: nowrap;
}

.pill--vote {
  color: var(--vote);
  background: color-mix(in srgb, var(--vote) 14%, transparent);
}

.pill--muted {
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 16%, transparent);
}

.pill__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.pill__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: currentColor;
  animation: ring 2.4s linear infinite;
}

@keyframes ring {
  0% {
    transform: scale(0.6);
    opacity: 0.55;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* The camera-body button: a dark slab with a spectrum bar down its leading edge. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem 1rem calc(1.5rem + 8px);
  border-radius: 16px;
  background: var(--camera);
  color: var(--camera-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  /* The inset hairline keeps the near-black slab legible on the Dusk ground. */
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgb(255 255 255 / 0.09);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--spectrum-v);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hair);
  padding-left: 1.5rem;
  box-shadow: none;
}

.btn--ghost::before {
  display: none;
}

/* A surface pill showing a labeled countdown, in tabular mono so digits
   don't jitter as they tick. */
.countdown {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--hair);
}

.countdown__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown__value {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.countdown__icon {
  width: 14px;
  height: 14px;
  color: var(--live);
  flex: none;
}

/* An instant-photo print: a white border framing a photo, with a wide bottom
   lip for a handwritten caption and an optional medal sticker. */
.print {
  position: relative;
  display: block;
  background: var(--paper);
  padding: 6px 6px 20px;
  border-radius: 3px;
  box-shadow: var(--shadow-print);
  rotate: var(--tilt, 0deg);
  transition: rotate 0.3s ease, transform 0.3s ease;
}

.print__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1px;
  background: var(--viewfinder);
}

.print__caption {
  display: block;
  min-height: 1.25em;
  margin-top: 5px;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--paper-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.print__medal {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--paper);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.35);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #1a140b;
}

/* Camera-style corner brackets over a framed photo. The second copy is
   rotated to supply the bottom two corners. */
.viewfinder {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--viewfinder);
}

.viewfinder__corners,
.viewfinder__corners--b {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.viewfinder__corners--b {
  rotate: 180deg;
}

.viewfinder__corners::before,
.viewfinder__corners::after,
.viewfinder__corners--b::before,
.viewfinder__corners--b::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 24px;
  height: 24px;
  border-top: 2.5px solid #fff;
  border-radius: 2px;
}

.viewfinder__corners::before,
.viewfinder__corners--b::before {
  left: 14px;
  border-left: 2.5px solid #fff;
}

.viewfinder__corners::after,
.viewfinder__corners--b::after {
  right: 14px;
  border-right: 2.5px solid #fff;
}

/* Rule-of-thirds guides. */
.viewfinder__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.16) 1px, transparent 1px);
  background-size: 33.33% 33.33%;
}

/* A gently breathing focus ring. */
.viewfinder__focus {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  border: 2px solid rgb(255 255 255 / 0.75);
  border-radius: 10px;
  animation: breathe 3.6s ease-in-out infinite alternate;
}

@keyframes breathe {
  from {
    transform: scale(0.88);
    opacity: 0.5;
  }
  to {
    transform: scale(1.06);
    opacity: 0.95;
  }
}

/* EXIF-style data line along the bottom of the viewfinder. */
.viewfinder__exif {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgb(255 255 255 / 0.94);
  pointer-events: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 1.5rem;
}

/* -------------------------------------------------------------- chrome ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  flex: none;
}

.theme-toggle:hover {
  color: var(--ink);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

:root[data-theme="dark"] .theme-toggle__sun,
:root:not([data-theme="light"]) .theme-toggle__sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle__sun {
  display: block;
}

:root[data-theme="light"] .theme-toggle__moon {
  display: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle__sun {
    display: block;
  }
  :root:not([data-theme]) .theme-toggle__moon {
    display: none;
  }
}

.site-header__rule {
  height: 3px;
  background: var(--spectrum);
  opacity: 0.9;
}

.site-footer {
  border-top: 1px solid var(--hair);
  margin-top: 3rem;
  padding: 1.75rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-left: auto;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------------------------------------------------------------- store --- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.store-badges a {
  display: block;
  transition: transform 0.2s ease;
}

.store-badges a:hover {
  transform: scale(1.04);
}

.store-badges img {
  width: auto;
  display: block;
}

/* Both official badges are sized so their *visible* artwork lands at 48px.
   Google's PNG ships with ~10% transparent padding, so it renders taller and
   pulls the padding back with negative margins. */
.badge-apple {
  height: 48px;
}

.badge-play {
  height: 64px;
  margin: -8px;
}

/* ----------------------------------------------------------------- hero --- */

.hero {
  padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.5rem, 3.5vw, 2.5rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.125rem, 4.6vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero__lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 1.5rem;
}

.hero__note {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The phone mock — a still of the app's Today screen, not a live view. */
.phone {
  position: relative;
  width: 100%;
  max-width: 288px;
  margin-inline: auto;
  padding: 10px;
  border-radius: 38px;
  background: var(--camera);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.28), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
}

.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  width: 78px;
  height: 20px;
  border-radius: 100px;
  background: #000;
  z-index: 2;
}

.phone__screen {
  background: var(--ground);
  border-radius: 29px;
  padding: 2rem 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
}

.phone__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.phone__date {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.phone__frame {
  aspect-ratio: 4 / 5;
}

.phone__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.15rem 0 0;
}

.phone__prompt {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.35;
}

.phone__cta {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem calc(1rem + 8px);
  font-size: 0.9375rem;
  pointer-events: none;
}

.phone-caption {
  margin: 1rem 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------- section --- */

.section {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.section__head {
  max-width: 46ch;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.section__head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 0.5rem;
}

.section__head p {
  color: var(--ink-soft);
  margin: 0;
}

/* -------------------------------------------------------------- how it ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 1.25rem;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--spectrum);
}

/* The rollover clock: the one time on the page that matters, in the reader's
   own timezone, with a live count to the next turnover. */
.rollover {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--hair);
  position: relative;
  overflow: hidden;
}

.rollover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--spectrum-v);
}

.rollover__face {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0.5rem;
}

.rollover__face .eyebrow {
  margin: 0;
}

.rollover__time {
  font-family: var(--font-mono);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.rollover__zone {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.rollover__next {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.rollover__next .countdown__value {
  margin-left: 0;
  font-size: 1.125rem;
}

/* The concrete local window for each phase, e.g. "Today · until 12:00 AM". */
.step__when {
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* Empty until site.js fills it, so it must not leave a stray rule behind. */
.step__when:empty {
  display: none;
}

.step__when b {
  font-weight: 700;
  color: var(--ink);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.step h3 {
  font-size: 1.0625rem;
  margin: 0.5rem 0 0.5rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* -------------------------------------------------------------- winners --- */

.winners {
  overflow: hidden;
  padding: 1.25rem 0 1.5rem;
  /* Fade the prints out at both edges of the viewport. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.winners__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding-inline: var(--gutter);
  animation: marquee 60s linear infinite;
}

.winners:hover .winners__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    /* The track holds two copies of the prints; half a loop is seamless. */
    transform: translateX(calc(-50% - 0.75rem));
  }
}

.winner {
  flex: 0 0 auto;
  width: 180px;
  text-decoration: none;
}

.winner .print:hover {
  rotate: 0deg;
  transform: translateY(-4px);
}

.winner__meta {
  margin-top: 0.85rem;
  text-align: center;
}

.winner__name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.winner__date {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.winners__empty {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2rem 0;
}

/* --------------------------------------------------------------- rules ---- */

.rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rules li {
  background: var(--surface-2);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 1rem 1.125rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.rules strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

/* ----------------------------------------------------------------- cta ---- */

.cta {
  position: relative;
  background: var(--camera);
  color: #fff;
  border-radius: 22px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--spectrum);
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta p {
  color: rgb(255 255 255 / 0.72);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.cta .store-badges {
  justify-content: center;
}

/* --------------------------------------------------------------- prose ---- */

/* Legal and support pages: one readable column on the same ground. */
.prose {
  max-width: 72ch;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 1rem;
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--vote);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--hair);
}

.prose__updated {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose__body {
  white-space: pre-wrap;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.steps-list {
  counter-reset: item;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.steps-list li {
  counter-increment: item;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
}

.steps-list li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 0.25rem;
  flex: none;
}

/* --------------------------------------------------------------- share ---- */

/* The pages behind shared links (/i/… and /p/…): one photo, then the pitch. */
.share {
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3rem) var(--gutter) 0;
  text-align: center;
}

.share__kicker {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.share h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.25rem);
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.share__prompt {
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.share .print {
  max-width: 460px;
  margin-inline: auto;
}

.share .print__photo {
  aspect-ratio: auto;
  max-height: 62vh;
  object-fit: contain;
}

.share__by {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 100px;
}

.share__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  flex: none;
}

.share__by span {
  font-size: 0.875rem;
  font-weight: 700;
}

.share__cta {
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  padding-top: clamp(2rem, 5vw, 2.75rem);
  border-top: 1px solid var(--hair);
}

.share__cta h2 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.share__cta p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  max-width: 40ch;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.share__cta .store-badges {
  justify-content: center;
}

/* The QR code on a pursuit's share page. */
.qr {
  display: inline-block;
  padding: 14px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow-print);
}

.qr img {
  display: block;
  width: 180px;
  height: 180px;
  image-rendering: pixelated;
}

/* --------------------------------------------------------------- misc ----- */

.centered-note {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem var(--gutter);
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero__lede {
    margin-inline: auto;
  }

  .hero .store-badges,
  .hero .eyebrow {
    justify-content: center;
    text-align: center;
  }

  .hero__order-visual {
    order: -1;
  }

  /* Three-up strips stack rather than leaving an orphan on the second row. */
  .steps,
  .rules {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-nav a {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .viewfinder__focus,
  .pill__dot::after {
    animation: none;
  }

  /* With the marquee stopped, the prints become a normal scroller. */
  .winners {
    overflow-x: auto;
  }

  .winners__track {
    animation: none;
  }

  .print,
  .btn,
  .store-badges a {
    transition: none;
  }
}
