/* ==========================================================================
   Preslab — Sports Card Scanner
   Single stylesheet. No external fonts or CDNs.
   ========================================================================== */

:root {
  --ink:        #04071a;
  --ink-2:      #070c26;
  --ink-3:      #0b1338;
  --line:       rgba(140, 165, 255, 0.14);
  --line-soft:  rgba(140, 165, 255, 0.08);
  --surface:    rgba(255, 255, 255, 0.035);
  --surface-2:  rgba(255, 255, 255, 0.06);

  --blue:       #3b6dff;
  --blue-lite:  #7ea3ff;
  --gold:       #e9b64d;
  --gold-deep:  #b8842a;
  --mint:       #3ee6a0;

  --text:       #eef2ff;
  --muted:      #a3b0d8;
  --muted-dim:  #7d8ab4;

  --radius:     18px;
  --radius-lg:  26px;
  --maxw:       1140px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

img { max-width: 100%; display: block; }
a { color: var(--blue-lite); text-decoration: none; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-lite);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 4.4vw, 2.85rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1rem; }

.lede { font-size: clamp(1.02rem, 1.9vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.accent { color: var(--gold); }
.italic-pop { font-style: italic; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue-lite);
  background: rgba(59, 109, 255, .1);
  border: 1px solid rgba(59, 109, 255, .3);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: .97rem; font-weight: 700;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #f2c65c, var(--gold) 45%, var(--gold-deep));
  color: #1b1200;
  box-shadow: 0 10px 30px -8px rgba(233, 182, 77, .5);
}
.btn-primary:hover { color: #1b1200; box-shadow: 0 16px 38px -8px rgba(233, 182, 77, .62); }

.btn-ghost {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,.11); color: #fff; }

/* Apple-style store badge, drawn in CSS (no external images) */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px; padding: 10px 20px 10px 17px;
  color: #fff; transition: transform .18s ease, border-color .18s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.6); color: #fff; }
.store-badge svg { flex: none; }
.store-badge .sb-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .sb-small { font-size: .63rem; letter-spacing: .04em; opacity: .85; }
.store-badge .sb-big { font-size: 1.14rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(4, 7, 26, .72);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.stuck { border-bottom-color: var(--line-soft); background: rgba(4, 7, 26, .9); }

.nav { display: flex; align-items: center; gap: 20px; height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px -4px rgba(59,109,255,.7); }
.brand .brand-text { display: block; }
.brand b { display: block; font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; }
.brand .brand-text > span {
  display: block; font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-dim); font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .93rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
/* the in-menu Download button only appears in the collapsed mobile menu */
.nav-links .btn { display: none; }

.nav .btn { padding: 10px 20px; font-size: .88rem; }

.nav-toggle {
  display: none; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav > .btn { display: none; }
  .nav-links {
    position: absolute; inset: 70px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; padding: 10px 22px 22px;
    background: rgba(6, 10, 32, .98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 2px; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav-links .btn { display: inline-flex; margin-top: 18px; justify-content: center; border-bottom: 0; }
}

/* ---------- Backdrop glows ---------- */
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px);
  pointer-events: none; z-index: 0;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 9vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 520px at 78% 12%, rgba(59, 109, 255, .3), transparent 62%),
    radial-gradient(700px 460px at 12% 88%, rgba(93, 47, 196, .24), transparent 65%),
    linear-gradient(180deg, var(--ink-2), var(--ink) 78%);
}
/* faint dot grid, like the app icon backdrop */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(140, 170, 255, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(closest-side at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 40%, #000 30%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(30px, 5vw, 64px); align-items: center;
}
.hero-copy .btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 30px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: .87rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--mint); flex: none; }

/* Icon showcase */
.showcase { position: relative; display: grid; place-items: center; min-height: 340px; }
.showcase-glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,109,255,.55), transparent 68%);
  filter: blur(46px);
}
.showcase img {
  position: relative; width: min(100%, 340px); border-radius: 24%;
  box-shadow: 0 40px 90px -26px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.07);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.chip {
  position: absolute; z-index: 2;
  background: rgba(8, 12, 32, .88);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  border-radius: 15px; padding: 11px 17px;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.85);
  animation: float 7s ease-in-out infinite;
}
.chip .k { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dim); font-weight: 700; }
.chip .v { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.chip-a { top: 8%;  left: -4%;  animation-delay: -1.4s; }
.chip-a .v { color: var(--mint); }
.chip-b { bottom: 16%; right: -5%; animation-delay: -3.2s; }
.chip-b .v { color: var(--gold); }
.chip-c { bottom: -2%; left: 6%; animation-delay: -2.2s; }
.chip-c .v { color: var(--blue-lite); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .showcase { order: -1; min-height: 300px; margin-bottom: 8px; }
  .showcase img { width: min(74%, 280px); }
  .chip-a { left: 0; } .chip-b { right: 0; } .chip-c { left: 8%; }
}
@media (max-width: 520px) {
  .chip { padding: 9px 13px; border-radius: 12px; }
  .chip .v { font-size: .9rem; }
}

/* ---------- Marquee strip ---------- */
.strip {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(59,109,255,.07), rgba(233,182,77,.05));
  padding: 18px 0; overflow: hidden;
}
.strip-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 12px 34px; text-align: center;
}
.strip-inner span {
  font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-dim);
}
.strip-inner .sep { color: rgba(140,165,255,.3); letter-spacing: 0; }

/* ---------- Sections ---------- */
section { position: relative; padding: clamp(64px, 9vw, 108px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--ink-2) 35%, var(--ink-2) 65%, transparent); }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 20px; }

.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px 32px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126,163,255,.6), transparent);
  opacity: 0; transition: opacity .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(140,165,255,.32); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

.icon-badge {
  width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(140deg, rgba(59,109,255,.3), rgba(59,109,255,.08));
  border: 1px solid rgba(126,163,255,.28);
  color: var(--blue-lite);
}
.icon-badge.gold {
  background: linear-gradient(140deg, rgba(233,182,77,.28), rgba(233,182,77,.06));
  border-color: rgba(233,182,77,.32); color: var(--gold);
}
.icon-badge.mint {
  background: linear-gradient(140deg, rgba(62,230,160,.24), rgba(62,230,160,.05));
  border-color: rgba(62,230,160,.3); color: var(--mint);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; counter-reset: step; }
.step {
  position: relative; padding: 34px 26px 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.step-num {
  position: absolute; top: -19px; left: 26px;
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; color: #1b1200;
  background: linear-gradient(135deg, #f2c65c, var(--gold-deep));
  box-shadow: 0 10px 24px -8px rgba(233,182,77,.6);
}
.step h3 { margin-top: 12px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Split (pre-grading) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 66px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.grade-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grade-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 15px; padding: 15px 17px; font-weight: 600; font-size: .95rem;
}
.grade-item svg { color: var(--blue-lite); flex: none; }
@media (max-width: 420px) { .grade-grid { grid-template-columns: 1fr; } }

.note {
  margin-top: 26px; padding: 16px 20px; font-size: .87rem; color: var(--muted);
  border-left: 3px solid rgba(233,182,77,.5); background: rgba(233,182,77,.05);
  border-radius: 0 12px 12px 0;
}
.note strong { color: var(--gold); }

/* ---------- Screenshot gallery ---------- */
.shots {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 22px 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(140,165,255,.35) transparent;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: rgba(140,165,255,.3); border-radius: 99px; }
.shots::-webkit-scrollbar-track { background: transparent; }

.shot { flex: 0 0 auto; width: 250px; scroll-snap-align: center; }
/* Source images are full App Store screenshots; the crop hides the marketing
   headline band at the top and shows only the device. */
.shot img {
  width: 100%; height: auto;
  aspect-ratio: 1284 / 2060;
  object-fit: cover;
  object-position: 50% 100%;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 60px -22px rgba(0,0,0,.85);
  transition: transform .3s ease;
}
.shot:hover img { transform: translateY(-6px); }
.shot figcaption { margin-top: 15px; text-align: center; font-size: .87rem; color: var(--muted); }
@media (max-width: 520px) { .shot { width: 210px; } }

/* ---------- Checklist ---------- */
.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 34px; max-width: 900px; margin: 0 auto; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; color: var(--muted); font-size: .98rem; }
.checklist { list-style: none; padding: 0; }
.checklist svg { color: var(--mint); flex: none; margin-top: 4px; }
.checklist b { color: var(--text); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color: rgba(140,165,255,.3); background: var(--surface-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue-lite);
  transition: transform .22s ease; line-height: 1; flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); font-size: .95rem; }
.faq .faq-body p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(42px, 6vw, 76px) 26px;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(59,109,255,.3), transparent 70%),
    linear-gradient(160deg, var(--ink-3), var(--ink-2));
}
.cta-panel img.cta-icon {
  width: 84px; border-radius: 22%; margin: 0 auto 26px;
  box-shadow: 0 22px 48px -14px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08);
}
.cta-panel .btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.cta-panel .lede { margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); padding: 40px 30px;
}
.contact-card .mail {
  display: inline-block; margin-top: 6px;
  font-size: clamp(1rem, 2.6vw, 1.32rem); font-weight: 700; color: var(--gold);
  word-break: break-all;
}
.contact-card .mail:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--ink-2);
  padding: 58px 0 34px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px 28px; margin-bottom: 40px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--muted-dim); font-size: .9rem; max-width: 34ch; margin-top: 16px; }
.footer-col h4 {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted-dim); margin: 0 0 16px; font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--muted); font-size: .92rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  color: var(--muted-dim); font-size: .84rem;
}
.disclaimer {
  margin-top: 22px; font-size: .76rem; line-height: 1.65; color: #616e97; max-width: 96ch;
}

/* ---------- Legal / article pages ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(52px, 7vw, 82px) 0 clamp(34px, 5vw, 52px);
  background:
    radial-gradient(700px 340px at 50% -10%, rgba(59,109,255,.24), transparent 70%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero p.updated { color: var(--muted-dim); font-size: .9rem; margin: 0; }

.prose { max-width: 780px; margin: 0 auto; padding: clamp(44px, 6vw, 70px) 22px clamp(60px, 8vw, 96px); }
.prose h2 {
  font-size: 1.42rem; margin: 46px 0 14px; padding-top: 4px;
  letter-spacing: -.015em;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.06rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: .98rem; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1rem; display: grid; gap: 9px; }
.prose strong { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 44px 0; }
.prose .callout {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius); padding: 20px 24px; margin: 26px 0;
}
.prose .callout p:last-child { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 22px; color: var(--muted); }
.back-link:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 68vh; display: grid; place-items: center; text-align: center; padding: 60px 22px; }
.notfound .code {
  font-size: clamp(4rem, 16vw, 8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(135deg, var(--blue-lite), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
