/* Baller: one stylesheet for every page. Tokens mirror src/theme/tokens.ts in the app. */

@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #05070a;
  --surface: #0e1116;
  --chalk: #f4f2ec;
  --text: #d3d8de;
  --muted: #9aa3af;
  --line: rgba(255, 255, 255, 0.09);
  --volt: #d4ff3a;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 40rem;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--chalk);
  text-decoration: underline;
  text-decoration-color: rgba(212, 255, 58, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--volt);
  text-decoration-color: var(--volt);
}

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

::selection {
  background: var(--volt);
  color: var(--bg);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--volt);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Header and footer ------------------------------------------------------------------------------------------ */

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 2 * var(--gutter), 1232px);
  margin: 0 auto;
}

.site-header {
  padding-block: 18px;
}

.wordmark {
  font: 800 1rem/1 var(--display);
  letter-spacing: 0.06em;
  color: var(--chalk);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--chalk);
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a,
.footer-nav a {
  padding: 10px 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.footer-nav a:hover {
  color: var(--chalk);
}

.nav a[aria-current="page"] {
  color: var(--chalk);
}

.site-footer {
  flex-wrap: wrap;
  padding-block: 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 4px;
  margin-left: -10px;
}

/* Home -------------------------------------------------------------------------------------------------------- */

.hero {
  flex: 1;
  display: grid;
  align-content: center;
  gap: clamp(8px, 2vw, 24px);
  width: min(100% - 2 * var(--gutter), 1232px);
  margin: 0 auto;
  padding-bottom: clamp(20px, 4vh, 64px);
}

.hero-art {
  position: relative;
  width: min(100%, 336px);
  margin: 0 auto;
  aspect-ratio: 640 / 600;
}

.hero-art svg,
.hero-art .ball {
  position: absolute;
}

.hero-art svg {
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-art .ball {
  left: 32.8125%;
  top: 0;
  width: 62.5%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6));
}

.touch-label {
  position: absolute;
  left: 21%;
  top: 92.5%;
  transform: translateY(-50%);
  color: var(--chalk);
  font: 700 0.6875rem/1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.8;
}

.hero h1 {
  margin: 0;
  color: var(--chalk);
  font: 800 clamp(3rem, 7.6vw, 7rem) / 0.98 var(--display);
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: block;
}

.hero h1 .dot {
  display: inline;
  color: var(--volt);
}

.hero .lede {
  max-width: 30rem;
  margin: clamp(16px, 2.4vw, 28px) 0 0;
  color: var(--text);
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.55;
}

.store-badge {
  display: inline-block;
  vertical-align: top;
  margin-top: clamp(24px, 3vw, 36px);
  border-radius: 12px;
}

.store-badge img {
  width: auto;
  height: 54px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(24px, 4vw, 72px);
  }

  .hero-copy {
    order: -1;
  }

  .hero-art {
    width: 100%;
    max-width: 640px;
  }

  .site-header {
    padding-block: 26px;
  }

  .touch-label {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art .ball {
    animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .trail-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1s 0.05s cubic-bezier(0.25, 0.7, 0.2, 1) forwards;
  }

  .touch,
  .touch-label {
    animation: appear 0.5s 0.75s ease-out both;
  }

  .hero-copy {
    animation: appear 0.7s 0.1s ease-out both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(-4%, 10%, 0) scale(0.94);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
}

/* Documents: support, privacy, 404 ---------------------------------------------------------------------------- */

.doc {
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 104px);
}

.doc h1 {
  margin: 0;
  color: var(--chalk);
  font: 800 clamp(2.5rem, 6vw, 4rem) / 1 var(--display);
  letter-spacing: -0.035em;
}

.doc .meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc .lede {
  margin: 20px 0 0;
  color: var(--chalk);
  font-size: 1.1875rem;
  line-height: 1.5;
}

.doc h2 {
  margin: 0 0 12px;
  color: var(--chalk);
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.doc p,
.doc ul {
  margin: 0 0 14px;
}

.doc ul {
  padding-left: 1.15em;
}

.doc li {
  margin-bottom: 10px;
  padding-left: 0.2em;
}

.doc li::marker {
  color: var(--muted);
}

.doc strong {
  color: var(--chalk);
  font-weight: 650;
}

.doc section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.doc section > :last-child,
.doc li > :last-child {
  margin-bottom: 0;
}

.label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Support: the address is the hero of the page. */
.contact {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.contact .email {
  display: inline-block;
  color: var(--chalk);
  font: 800 clamp(1.125rem, 4.6vw, 1.625rem) / 1.25 var(--display);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.contact .email:hover {
  color: var(--volt);
}

.contact p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Privacy: the short version, as a spec sheet. */
.summary {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.summary .verdict {
  margin: 0;
  text-wrap: balance;
  color: var(--chalk);
  font: 800 clamp(1.375rem, 4.4vw, 1.75rem) / 1.2 var(--display);
  letter-spacing: -0.025em;
}

.summary .verdict + p {
  margin: 10px 0 0;
  color: var(--text);
}

.doc .facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.doc .facts li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 12px 8px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--chalk);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.doc .facts li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt);
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .doc .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact,
  .summary {
    padding: 32px;
  }
}

.doc .home-link {
  margin-top: 28px;
}
