/* The home page, in the app's Holo look: ink-indigo ground, raised panels,
   the foil gradient. Poppins is by the Indian Type Foundry, under the SIL
   Open Font License (fonts/OFL.txt), subset to Latin. */

@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/poppins-regular.woff") format("woff");
}

@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/poppins-semibold.woff") format("woff");
}

@font-face {
  font-family: "Poppins";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("fonts/poppins-extrabold.woff") format("woff");
}

:root {
  --bg: #0b0a1c;
  --glow: #241d66;
  --panel: #16143a;
  --panel-2: #1f1b50;
  --line: #2b2852;
  --ink: #f6f4ff;
  --dim: #aba6d6;
  --foil: linear-gradient(115deg, #6ef2e0, #8c7bff, #ff86d1, #ffd46a);
  --gutter: 20px;
  /* Film grain: a small tile of faint white specks from an SVG noise filter,
     laid over the hero's and the Pro plan's light. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .6 0 0 0 -.36'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

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

body {
  margin: 0;
  background: radial-gradient(90% 60% at 72% 0%, var(--glow), transparent 70%) no-repeat, var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The top of the page's light: three soft patches in the foil's colours with
   grain over them, behind the header and the hero, fading out below. It
   doesn't move. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 880px;
  background:
    var(--grain),
    radial-gradient(34% 42% at 10% 34%, rgba(110, 242, 224, 0.12), transparent 72%),
    radial-gradient(40% 46% at 46% 4%, rgba(140, 123, 255, 0.2), transparent 72%),
    radial-gradient(32% 40% at 94% 58%, rgba(255, 134, 209, 0.12), transparent 72%);
  -webkit-mask-image: linear-gradient(#000 50%, transparent);
  mask-image: linear-gradient(#000 50%, transparent);
  pointer-events: none;
}

a { color: var(--ink); text-decoration-color: rgba(246, 244, 255, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid #8c7bff; outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--panel);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

h1, h2, h3 { text-wrap: balance; }

h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.foil-text {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

main > section { padding-top: 60px; padding-bottom: 60px; scroll-margin-top: 12px; }

.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { margin: 0; color: var(--dim); font-size: 17px; }

/* Blocks below the fold rise into place as they scroll into view. tour.js
   puts .reveal on them, so without it nothing here is ever hidden. */
.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s ease-out, translate 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}
.reveal.in { opacity: 1; translate: none; }
.tile.reveal:nth-child(3n + 2), .plan.pro.reveal { transition-delay: 70ms; }
.tile.reveal:nth-child(3n) { transition-delay: 140ms; }

@media (prefers-reduced-motion: reduce), print {
  .reveal { opacity: 1; translate: none; transition: none; }
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* The logo's small cut (brand/README.md): it shows 40 px tall. */
.logo { display: block; flex-shrink: 0; }
.logo img { display: block; width: auto; height: 40px; }

.top nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.top nav a { color: var(--dim); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* The way into the website (/collection/), as a small button; tour.js
   relabels it "Your collection" for someone already signed in. */
.top nav .signin {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  white-space: nowrap;
}
.top nav .signin:hover { background: var(--panel-2); }

/* With Vendors and News the row needs about 740px, so they're the first links
   to go. */
@media (max-width: 760px) {
  .top nav .wide { display: none; }
}

@media (max-width: 600px) {
  .top nav .more { display: none; }
  /* Room for the sign-in button: a smaller logo, Support left to the
     footer, and on the narrowest phones the button wraps under the logo
     rather than pushing the page sideways. */
  .top { flex-wrap: wrap; row-gap: 10px; }
  .logo img { height: 32px; }
  .top nav { gap: 14px; margin-left: auto; }
  .top nav .roomy { display: none; }
}

/* The language menu (sync/site_i18n.mjs writes it): the page's flag,
   opening to every language as plain links, so it needs no script. Each
   link goes to the same page in that language. */
.top nav .lang { position: relative; z-index: 30; }
.lang summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 1px 0 1px;
  border-right: 1.5px solid var(--dim);
  border-bottom: 1.5px solid var(--dim);
  transform: rotate(45deg);
}
.lang[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.lang summary:hover { background: var(--panel-2); }
.lang img { display: block; width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14); }
.lang ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.45);
}
.top nav .lang ul a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
  white-space: nowrap;
}
.top nav .lang ul a:hover, .top nav .lang ul a[aria-current] { background: var(--panel-2); }
.top nav .lang ul a[aria-current]::after { content: "\2713"; margin-left: auto; padding-left: 12px; color: var(--dim); }

/* The menu makes the header's row longer, and the other languages' words
   run longer still, so the extra links go sooner than the rules above say.
   Measured with every page in every language (2026-10-30): with these, each
   English header keeps to one row down to 601px, and the others do too. */
@media (max-width: 830px) {
  .top nav .wide { display: none; }
}
@media (max-width: 770px) {
  .top nav .roomy { display: none; }
}
@media (max-width: 690px) {
  .top nav .more { display: none; }
}
@media (max-width: 930px) {
  html:not([lang="en"]) .top nav .wide { display: none; }
}
@media (max-width: 860px) {
  html:not([lang="en"]) .top nav .roomy { display: none; }
}
@media (max-width: 750px) {
  html:not([lang="en"]) .top nav .more { display: none; }
}

/* On the narrowest phones the menu is the flag alone, so 360px-wide phones
   keep the logo, the menu and Sign in on one row as before. */
@media (max-width: 400px) {
  .lang summary { gap: 0; padding: 6px 7px; }
  .lang summary::after { display: none; }
}

/* Should a row still run long one day (a longer translation), it wraps
   under the logo instead of pushing the page sideways. */
.top { flex-wrap: wrap; row-gap: 10px; }
.top nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; margin-left: auto; }

/* The same languages as a row of links in the footer. */
.site-foot .langs { font-weight: 400; }
.site-foot .langs a { color: var(--dim); }
.site-foot .langs a[aria-current] { color: var(--ink); font-weight: 600; }

/* Hero */

main > .hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-top: 28px;
  overflow-x: hidden;
  overflow-x: clip;
}

@media (min-width: 880px) {
  main > .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 48px; }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 20, 58, 0.7);
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7.4vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

/* The slogan is the headline; this plain line under it says what the app does. */
.hero .sub { margin: 0 0 14px; font-size: clamp(20px, 2.6vw, 25px); font-weight: 600; line-height: 1.3; }

.lede { margin: 0 0 28px; max-width: 34em; color: var(--dim); font-size: clamp(17px, 2.2vw, 19px); }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cta small { color: var(--dim); font-size: 14px; }

/* The App Store and Google Play buttons. */
.store {
  position: relative;
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.store:hover { background: var(--panel-2); }
.store:focus-visible { border-radius: 999px; }

.store::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--foil);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.hero-art { position: relative; display: grid; place-items: center; }

.hero-art::before {
  content: "";
  position: absolute;
  inset: -6% 0;
  background: radial-gradient(closest-side, rgba(140, 123, 255, 0.5), rgba(255, 134, 209, 0.14) 62%, transparent);
}

/* A phone around a screenshot. The screens are 1320 × 2868. */

.phone {
  position: relative;
  width: min(var(--w, 300px), 100%);
  padding: 9px;
  border-radius: 48px;
  background: #1c1a3c;
  box-shadow: 0 0 0 1px #34306a, 0 40px 80px -30px rgba(0, 0, 0, 0.85);
}

.phone img, .phone video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  border-radius: 39px;
  background: var(--bg);
}
.phone video { object-fit: cover; }

/* A clip's pause button, in the phone's corner. tour.js shows it once the clip
   can play: two bars while it plays, a triangle while it rests. */
.clip-toggle {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 10, 28, 0.72);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}
.clip-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 12px;
  height: 14px;
  margin: auto;
  background: linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px, var(--ink) 8px 12px);
}
.clip-toggle.paused::before {
  width: 0;
  height: 0;
  margin: auto auto auto 15px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--ink);
  background: none;
}
.clip-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.hero .phone { --w: 330px; }

/* Mewtwo and Gengar. On wide screens they hold the page's two edges: fixed
   while it scrolls, leaning in, under everything else. Narrower, they fan
   out behind the hero's phone. Cards are 63:88. */

.hero-art {
  --pw: min(330px, calc(100vw - 40px));   /* the phone's width */
  --card: calc(var(--pw) * 0.54);
  padding-top: calc(var(--card) * 0.62);
}

.flank {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--card);
  aspect-ratio: 63 / 88;
  border-radius: calc(var(--card) * 0.045);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -24px rgba(0, 0, 0, 0.8),
    0 0 70px -12px rgba(140, 123, 255, 0.5);
  pointer-events: none;
}

.flank img { display: block; width: 100%; height: 100%; border-radius: inherit; }

.flank-left { translate: calc(-50% - var(--pw) * 0.26) 0; rotate: -13deg; }
.flank-right { translate: calc(-50% + var(--pw) * 0.26) calc(var(--card) * 0.12); rotate: 13deg; }

/* A slow foil glint across each card. */
.flank::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 38%, rgba(110, 242, 224, 0.3) 45%,
    rgba(255, 134, 209, 0.28) 50%, rgba(255, 212, 106, 0.26) 55%, transparent 62%) 0 0 / 300% 300%;
  mix-blend-mode: color-dodge;
  animation: glint 9s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.flank-right::after { animation-delay: -4.5s; }

@keyframes glint {
  0%, 25% { background-position: 100% 100%; }
  70%, 100% { background-position: 0 0; }
}

/* Under a mouse or pen the hero leans: the phone turns to face the pointer,
   the two cards turn the other way, and the foil sits where the pointer is
   in place of the timed glint. tour.js puts .tilting and four properties on
   .hero-art for it (--tilt-x and --tilt-y run from -1 to 1). Touch keeps the
   glint. */

.hero .phone, .flank { transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1); }
.tilting .phone, .tilting .flank { transition-duration: 0.2s; }

.tilting .phone {
  transform: perspective(1000px) rotateX(calc(var(--tilt-y, 0) * -4deg)) rotateY(calc(var(--tilt-x, 0) * 6deg));
}

.tilting .flank {
  transform: perspective(700px) rotateX(calc(var(--tilt-y, 0) * 7deg)) rotateY(calc(var(--tilt-x, 0) * -9deg));
}

.flank::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 36%, rgba(110, 242, 224, 0.34) 44%, rgba(140, 123, 255, 0.3) 48%,
    rgba(255, 134, 209, 0.32) 52%, rgba(255, 212, 106, 0.3) 56%, transparent 64%)
    var(--foil-x, 50%) var(--foil-y, 50%) / 300% 300%;
  mix-blend-mode: color-dodge;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tilting .flank::before { opacity: 1; }
.tilting .flank::after { opacity: 0; }

@keyframes float {
  from { translate: 0 calc(-50% - 9px); }
  to { translate: 0 calc(-50% + 9px); }
}

@media (min-width: 1440px) {
  .hero-art { padding-top: 0; }

  .flank {
    --gw: calc((100vw - 1120px) / 2);                  /* the space beside the page */
    --room: calc(var(--gw) - 8px);
    --card: clamp(230px, calc(var(--gw) * 0.62 + 160px), 400px);
    --inset: min(var(--room) - var(--card), (var(--room) - var(--card)) / 2);
    position: fixed;
    z-index: -1;
    top: 50%;
    left: var(--inset);
    translate: 0 -50%;
    animation: float 8s ease-in-out infinite alternate;
  }

  .flank-left { rotate: 6deg; }
  .flank-right { left: auto; right: var(--inset); rotate: -6deg; animation-delay: -4s; }

  /* The tour's screens run the page's full width, so the cards step aside
     while the tour passes them (tour.js puts .aside on .hero-art). */
  .flank { transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.4s ease; }
  .aside .flank { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .flank, .flank::after { animation: none; }
}

/* The tour: a row of screens that scrolls sideways and runs to the page's
   edges, with its first screen lined up under the headings. */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(300px, 78vw);
  gap: 28px;
  margin: 0;
  padding: 6px max(var(--gutter), calc((100% - 1120px) / 2 + var(--gutter))) 28px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100% - 1120px) / 2 + var(--gutter)));
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.rail:focus-visible { outline-offset: -2px; border-radius: 0; }
.rail li { scroll-snap-align: start; }
.rail .phone { --w: 100%; padding: 7px; border-radius: 38px; box-shadow: 0 0 0 1px #34306a, 0 30px 60px -30px rgba(0, 0, 0, 0.85); }
.rail .phone img, .rail .phone video { border-radius: 31px; }
.rail button.phone { display: block; margin: 0; font: inherit; color: inherit; cursor: zoom-in; border: 0; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.rail button.phone:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #8c7bff, 0 36px 70px -30px rgba(0, 0, 0, 0.9); }
.rail.can-drag { cursor: grab; }   /* tour.js: drag with a mouse */
.rail.dragging { scroll-snap-type: none; }
.rail.dragging, .rail.dragging button.phone { cursor: grabbing; }

/* A tour screen opened full size: a popover, so it needs no script, and a
   tap outside it or Escape closes it too. */

.zoom {
  position: fixed;
  inset: 0;
  width: fit-content;
  max-width: calc(100vw - 32px);
  height: fit-content;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 9px;
  border: 0;
  border-radius: 44px;
  background: #1c1a3c;
  box-shadow: 0 0 0 1px #34306a, 0 40px 120px -20px rgba(0, 0, 0, 0.9);
  overflow: visible;
}
.zoom::backdrop { background: rgba(6, 5, 18, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zoom img {
  display: block;
  width: auto;
  height: min(calc(100dvh - 50px), calc((100vw - 50px) * 2868 / 1320));
  aspect-ratio: 1320 / 2868;
  border-radius: 36px;
  background: var(--bg) center / cover no-repeat;   /* tour.js puts the small copy here */
}
.zoom-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font: 600 24px/1 "Poppins", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
@media (max-width: 600px) {
  .zoom-close { top: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .rail button.phone { transition: none; }
  .rail button.phone:hover { transform: none; }
}
.rail h3 { margin: 18px 0 4px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.rail p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.5; }

.pro-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--foil);
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  vertical-align: 2px;
}

/* The website */

.web { display: grid; gap: 32px; align-items: center; }

@media (min-width: 900px) {
  .web { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
}

.web-text p { margin: 0 0 14px; max-width: 34em; color: var(--dim); font-size: 17px; }

.web-link {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.web-link:hover { background: var(--panel-2); }

/* A browser window around the page's picture: a bar with three dots. */
.browser {
  padding-top: 26px;
  border: 1px solid #34306a;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18px 13px, #4a4690 0 4.5px, transparent 5px),
    radial-gradient(circle at 34px 13px, #4a4690 0 4.5px, transparent 5px),
    radial-gradient(circle at 50px 13px, #4a4690 0 4.5px, transparent 5px),
    var(--panel);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.browser img { display: block; width: 100%; height: auto; }

/* Vendor Mode's section: its two screens side by side, the seller's and
   the one turned to the customer. */
.pair { display: flex; justify-content: center; gap: 20px; }
.pair .phone { --w: 230px; padding: 7px; border-radius: 38px; }
.pair .phone img, .pair .phone video { border-radius: 31px; }
.pair .clip-toggle { right: 12px; bottom: 12px; transform: scale(0.75); transform-origin: 100% 100%; }
/* What else Vendor Mode does, as tiles under the two screens. */
.web + .tiles { margin-top: 44px; }

/* Features: one column on a phone, two from 600px (the Prices tile runs
   across both, so the three with pictures fill two rows), three from 880px. */

.tiles {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-worth, .tile-wide { grid-column: span 2; }
}

@media (min-width: 880px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-worth, .tile-wide { grid-column: auto; }
}

.tile {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  overflow: hidden;
}

.tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--foil); }
.tile h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.tile p { margin: 0; color: var(--dim); font-size: 15px; }

/* The first three tiles carry a small picture of what they describe, in a
   recessed panel at the tile's foot. The pictures are decoration (hidden from
   screen readers; the words above say the same), and every figure in them is
   the demo collection's, from the screens in the tour, and says so. */

.tile-live { display: flex; flex-direction: column; }
.tile-live > p { margin-bottom: 22px; }

.art {
  --well: #0f0e28;
  position: relative;
  height: 212px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--well);
  overflow: hidden;
}

.demo {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Scan: a card inside the camera's corner brackets, and a line that sweeps
   down it. The sweep is the one endless animation here; tour.js rests it
   while the tile is off screen. */

.scan { position: absolute; top: 47%; left: 50%; width: 112px; translate: -50% -50%; rotate: -4deg; }

/* The brackets: a rounded outline, masked down to its four corners. */
.scan::before {
  --corner: linear-gradient(#000 0 0);
  content: "";
  position: absolute;
  inset: -11px;
  border: 2.5px solid var(--ink);
  border-radius: 15px;
  -webkit-mask: var(--corner) 0 0, var(--corner) 100% 0, var(--corner) 0 100%, var(--corner) 100% 100%;
  -webkit-mask-size: 20px 20px;
  -webkit-mask-repeat: no-repeat;
  mask: var(--corner) 0 0, var(--corner) 100% 0, var(--corner) 0 100%, var(--corner) 100% 100%;
  mask-size: 20px 20px;
  mask-repeat: no-repeat;
}

.scan-card {
  position: relative;
  aspect-ratio: 63 / 88;
  border-radius: 6px;
  box-shadow: 0 16px 30px -14px #000;
  overflow: hidden;
}

.scan-card img { display: block; width: 100%; height: 100%; }

/* As tall as the card: a foil line along its foot and a wash of light above
   it, sliding from over the card down onto it. */
.scan-line {
  position: absolute;
  inset: 0;
  background: var(--foil) bottom / 100% 3px no-repeat,
    linear-gradient(transparent 30%, rgba(110, 242, 224, 0.1) 70%, rgba(110, 242, 224, 0.42));
  translate: 0 -100%;
  animation: sweep 3.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.tile-scan.resting .scan-line { animation-play-state: paused; }

@keyframes sweep {
  0% { translate: 0 -100%; opacity: 0; }
  8% { opacity: 1; }
  62% { translate: 0 0; opacity: 1; }
  74%, 100% { translate: 0 0; opacity: 0; }
}

/* The result, over the card's foot, between the two lower brackets. */
.scan-chip {
  position: absolute;
  bottom: 9px;
  left: 50%;
  translate: -50% 0;
  padding: 3px 10px;
  border: 1px solid rgba(92, 242, 166, 0.4);
  border-radius: 999px;
  background: rgba(15, 14, 40, 0.85);
  color: #5cf2a6;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scan-chip::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}

/* Prices: the demo collection's value and its line. tour.js counts the figure
   up and slides a cover off the line from the left, once, when the tile
   comes into view; without it both simply show. */

.tile-worth .art { padding: 14px 16px 0; }

.worth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.worth { margin-top: 2px; font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.worth-gain { color: var(--dim); font-size: 12.5px; }

.worth-gain b {
  margin-right: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(92, 242, 166, 0.14);
  color: #5cf2a6;
  font-weight: 600;
}

.spark { position: absolute; inset: auto 0 0; height: 100px; }
.spark svg { display: block; width: 100%; height: 100%; }

/* The line's last point, as in the app's chart. */
.spark-dot {
  position: absolute;
  top: calc(18.4% - 4.5px);
  right: calc(3.33% - 4.5px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffd46a;
  box-shadow: 0 0 0 4px rgba(255, 212, 106, 0.22);
}

.spark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--well);
  transform: scaleX(0);
  transform-origin: 100% 50%;
}

.tile-worth.armed .spark::after { transform: none; }
.tile-worth.counted .spark::after { transform: scaleX(0); transition: transform 1.4s cubic-bezier(0.33, 1, 0.68, 1); }

/* Log every pack: three pulls from the tour's demo pack as chips, each with
   its rarity and the hit among them marked, that fan out under a mouse
   (--fan runs from 0 to 1). */

.tile-pulls .art { display: grid; place-content: center; justify-items: center; }
.tile-pulls .demo { position: absolute; top: 12px; left: 12px; }

.pull {
  --fan: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 204px;
  margin-block: -2px;
  padding: 9px 16px;
  border: 1px solid #34306a;
  border-radius: 999px;
  background: var(--panel-2);
  box-shadow: 0 12px 22px -14px #000;
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 600;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.pull b { color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

.pull-back {
  transform: translate(calc(-8px - 12px * var(--fan)), calc(-8px * var(--fan))) rotate(calc(-3deg - 5deg * var(--fan)));
}

/* The hit, on top, with the foil edge the app gives one. */
.pull-hit {
  position: relative;
  z-index: 1;
  border-color: transparent;
  background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--foil) border-box;
  transform: translate(calc(10px + 8px * var(--fan))) rotate(calc(2deg + 2deg * var(--fan))) scale(calc(1 + 0.05 * var(--fan)));
}

.pull-hit { color: var(--ink); }
.pull-hit b { color: #ffd46a; }

.pull-front {
  transform: translate(calc(-2px - 10px * var(--fan)), calc(8px * var(--fan))) rotate(calc(-1.5deg - 4.5deg * var(--fan)));
}

@media (hover: hover) {
  .tile-pulls:hover .pull { --fan: 1; }
}

/* Reduced motion: each picture rests in its finished state. */
@media (prefers-reduced-motion: reduce) {
  .scan-line { animation: none; translate: 0 -45%; }
  .tile-worth.armed .spark::after { transform: scaleX(0); transition: none; }
  .pull { --fan: 1; transition: none; }
}

.also { margin: 22px 0 0; color: var(--dim); font-size: 15px; }

/* Privacy */

.band {
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}

.band p { max-width: 40em; margin: 0 0 14px; color: var(--dim); font-size: 17px; }

.points { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; padding: 0; list-style: none; }

.points li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 10, 28, 0.5);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .band { padding: 32px 22px; }
}

/* Pro */

.plans { display: grid; gap: 16px; }

@media (min-width: 760px) {
  .plans { grid-template-columns: 1fr 1fr; }
}

.plan { padding: 28px 26px; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); }

.plan.pro, .post-lead {
  position: relative;
  z-index: 0;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--foil) border-box;
  overflow: hidden;
}

/* The Pro plan's own light: the top of the page's, in small. The newest post
   on /news/ wears the same. */
.plan.pro::before, .post-lead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    var(--grain),
    radial-gradient(70% 46% at 8% 0%, rgba(110, 242, 224, 0.14), transparent 72%),
    radial-gradient(64% 50% at 100% 12%, rgba(140, 123, 255, 0.3), transparent 72%),
    radial-gradient(60% 44% at 78% 100%, rgba(255, 134, 209, 0.14), transparent 72%);
  pointer-events: none;
}

.plan h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.plan .note { margin: 0 0 20px; color: var(--dim); font-size: 15px; }
.plan ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; }

.plan li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--foil);
}

.fine { margin: 18px 0 0; color: var(--dim); font-size: 14px; }

/* Questions */

.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }

.faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--dim);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--dim); }
.faq + .fine { margin-top: 20px; }

/* Closing */

main > .closing { padding-bottom: 56px; text-align: center; }
.closing img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 24px 50px -20px rgba(140, 123, 255, 0.8); }
.closing h2 { margin-top: 24px; }
.closing .lede { margin: 0 auto 8px; }
.closing .store { margin: 20px 6px 0; }

/* Footer */

.site-foot { padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; font-weight: 600; }
.site-foot nav a { color: var(--ink); text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot p { max-width: 62em; margin: 0 0 8px; }

/* News (/news/ and each post at /news/<name>/) and the affiliate program
   (/affiliates/): static pages with no script, so nothing on them waits for
   tour.js. */

main > .page-head { padding-bottom: 8px; }
.page-head h1 { margin-bottom: 10px; }
.page-head p { margin: 0; color: var(--dim); font-size: 17px; }

.post-meta {
  margin: 0;
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The newest post, large; the whole panel is the link. */
.post-lead { display: block; padding: 36px 32px; border-radius: 28px; color: var(--ink); text-decoration: none; }
.post-lead .eyebrow { margin-bottom: 14px; }
.post-lead h2 { margin-bottom: 12px; }
.post-lead p:not(.eyebrow):not(.post-meta) { max-width: 40em; margin: 0 0 20px; color: var(--dim); font-size: 17px; }
.post-lead:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

@media (max-width: 600px) {
  .post-lead { padding: 28px 22px; }
}

.post-year { margin: 48px 0 16px; color: var(--dim); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; }

/* The older posts, as tiles two to a row; each tile is its post's link. */
@media (min-width: 880px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.post-card .post-meta { margin-bottom: 10px; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover { background: var(--panel-2); }
.post-card:hover h3 a { text-decoration: underline; }

/* A post. */
main > .post { max-width: 800px; padding-top: 28px; padding-bottom: 32px; }
.crumbs { margin: 0 0 16px; color: var(--dim); font-size: 14px; font-weight: 600; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.post h1 { font-size: clamp(36px, 6.4vw, 56px); }
.post .lede { margin-bottom: 18px; }
.post > .post-meta { margin-bottom: 40px; }
.post figure { margin: 0 0 44px; }
.post figcaption { margin-top: 16px; color: var(--dim); font-size: 14px; text-align: center; }

.prose { font-size: 17px; line-height: 1.75; }
.prose h2 { margin: 48px 0 14px; font-size: clamp(24px, 3.6vw, 30px); }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: #8c7bff; }
.prose strong { font-weight: 600; }

.cta .web-link { margin-top: 0; }

/* The affiliate program's three figures, beside its headline. */
.figures { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.figures li { padding: 20px 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(22, 20, 58, 0.7); }
.figures b { display: block; font-size: clamp(30px, 4vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.figures span { color: var(--dim); font-size: 15px; }

/* Numbered steps: how to apply. */
.steps { display: grid; gap: 12px; max-width: 760px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 20px 22px 20px 74px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--foil);
  color: var(--bg);
  font-weight: 800;
}
.steps h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.steps p { margin: 0; color: var(--dim); font-size: 15px; }
.steps + .plan { max-width: 760px; margin-top: 28px; }
