/* Reposed's website. Black, white, and the app's cyan (#22D3EE), like the app. */

:root {
  --accent: #22d3ee;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.4);
  --surface: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --cream: #fbf7f0;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  width: min(1080px, 100% - 40px);
  margin: 0 auto;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

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

.brand .dot {
  color: var(--accent);
}

.top nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}

.top nav > a {
  color: var(--muted);
  text-decoration: none;
}

.top nav > a:hover {
  color: var(--text);
}

.account {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}

.balance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.balance img {
  width: 22px;
  height: 22px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:active {
  transform: scale(0.97);
}

.button:disabled {
  opacity: 0.5;
  cursor: default;
}

.button.light {
  background: #fff;
}

.button.quiet {
  background: var(--surface);
  color: var(--text);
}

.button.small {
  height: 36px;
  padding: 0 16px;
  font-size: 15px;
}

/* Home */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero .mark {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin-bottom: 28px;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 520px;
  margin: 24px auto 36px;
  color: var(--muted);
  font-size: 20px;
}

.coins {
  padding: 72px 0 96px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 64px;
}

h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.coins .lede {
  max-width: 560px;
  margin: 16px 0 40px;
  color: var(--muted);
  font-size: 19px;
}

.packs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
}

.pack.featured {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.12);
}

.pack .tag {
  position: absolute;
  top: -11px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pack img {
  width: 84px;
  height: 84px;
  margin-bottom: 14px;
}

.pack .amount {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pack .unit {
  color: var(--muted);
  font-size: 15px;
}

.pack .compare {
  margin: 10px 0 18px;
  color: var(--faint);
  font-size: 14px;
}

.pack .compare s {
  color: var(--muted);
}

.pack .button {
  width: 100%;
  margin-top: auto;
  height: 46px;
  font-variant-numeric: tabular-nums;
}

.fine {
  margin-top: 28px;
  color: var(--faint);
  font-size: 14px;
}

.notice {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 15px;
}

/* Thanks */

.done {
  max-width: 520px;
  margin: 0 auto;
  padding: 120px 0 140px;
  text-align: center;
}

.done img {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
}

.done p {
  margin: 18px 0 32px;
  color: var(--muted);
  font-size: 19px;
}

/* Legal and help pages */

.page {
  max-width: 720px;
  padding: 72px 0 96px;
}

.page h1 {
  font-size: clamp(40px, 7vw, 64px);
}

.page .updated {
  margin: 14px 0 40px;
  color: var(--faint);
  font-size: 15px;
}

.page h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page p,
.page li {
  color: rgba(255, 255, 255, 0.78);
}

.page ul {
  padding-left: 22px;
}

.page li + li {
  margin-top: 8px;
}

.page strong {
  color: var(--text);
}

.page a {
  color: var(--accent);
}

/* Footer */

footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

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

footer .owner {
  margin-left: auto;
}

@media (max-width: 960px) {
  .packs {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 26px;
  }
}

@media (max-width: 620px) {
  .top nav > a:not(.keep) {
    display: none;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .packs {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 10px;
  }

  .pack:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .pack {
    padding: 24px 10px 12px;
  }

  .pack .amount {
    font-size: 26px;
  }

  footer .owner {
    margin-left: 0;
  }
}

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

  .button {
    transition: none;
  }
}
