/* CardSum — Stadium Foil, on the web.
   Night stage, glass panels, gold is the only glowing surface.
   Tokens are the shipped app palette (docs/03). */

:root {
  --chrome-950: #0E1116;
  --chrome-900: #131820;
  --chrome-800: #1A2029;
  --chrome-700: #242C37;
  --paper: #F4F1E9;
  --paper-70: rgba(244, 241, 233, 0.70);
  --paper-45: rgba(244, 241, 233, 0.45);
  --ink-900: #14181D;
  --bulk: #94A3B8;
  --keeper: #2DD4BF;
  --gold: #E8B923;
  --gold-400: #F5CE47;
  --hairline: rgba(244, 241, 233, 0.10);
  --hairline-soft: rgba(244, 241, 233, 0.06);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--sans);
  background: var(--chrome-950);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* The stage: one warm light source, one cool reflection, nothing loud. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52rem 34rem at 82% -8%, rgba(232, 185, 35, 0.10), transparent 60%),
    radial-gradient(44rem 30rem at -12% 108%, rgba(45, 212, 191, 0.05), transparent 60%),
    var(--chrome-950);
}

/* Film grain — card stock, not screen. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(232, 185, 35, 0.30); color: var(--paper); }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---- Floating pill nav ---------------------------------------------- */

header.site {
  position: sticky;
  top: 20px;
  z-index: 30;
  display: flex;
  justify-content: center;
  margin: 24px 0 0;
}

.navpill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 20px;
  border-radius: 999px;
  background: rgba(19, 24, 32, 0.72);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.8);
}

.wordmark {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-right: 12px;
}

.wordmark .sum {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0;
}

.navpill a.navlink {
  font-size: 13px;
  font-weight: 500;
  color: var(--paper-70);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.5s var(--ease), background 0.5s var(--ease);
}

.navpill a.navlink:hover { color: var(--paper); background: rgba(244, 241, 233, 0.07); }

/* ---- Double-bezel glass --------------------------------------------- */

.shell {
  background: rgba(244, 241, 233, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 7px;
}

.core {
  background: linear-gradient(180deg, rgba(26, 32, 41, 0.92), rgba(19, 24, 32, 0.92));
  border: 1px solid var(--hairline-soft);
  border-radius: 21px;
  box-shadow: inset 0 1px 1px rgba(244, 241, 233, 0.07);
}

/* ---- Type ------------------------------------------------------------ */

h1 {
  font-size: clamp(44px, 7.5vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h1 .sum-word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Section label = the scan guide. Four viewfinder corners frame the words,
   the way the camera frames a card. */
.framelabel {
  position: relative;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-70);
  padding: 10px 18px;
}

.framelabel::before,
.framelabel::after,
.framelabel i::before,
.framelabel i::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border: 0 solid rgba(232, 185, 35, 0.75);
}

.framelabel::before { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.framelabel::after { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.framelabel i::before { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.framelabel i::after { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }

.framelabel i { font-style: normal; }

.money {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---- Hero ------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 96px 0 120px;
}

.hero .pitch {
  margin: 22px 0 34px;
  font-size: 18px;
  color: var(--paper-70);
  max-width: 44ch;
}

.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.coin {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold));
  color: var(--ink-900);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 8px 12px 22px;
  border-radius: 999px;
  box-shadow: 0 14px 34px -14px rgba(232, 185, 35, 0.45);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.coin .disc {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(20, 24, 29, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform 0.5s var(--ease);
}

.coin:hover { transform: translateY(-1px); box-shadow: 0 20px 44px -14px rgba(232, 185, 35, 0.55); }
.coin:hover .disc { transform: translate(2px, -1px) scale(1.05); }
.coin:active { transform: scale(0.98); }

.storepill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--paper-70);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 11px 18px;
}

.storepill small {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-45);
}

/* ---- The verdict cards (the app, in CSS) ----------------------------- */

.stage {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vcard {
  width: 236px;
  aspect-ratio: 2.5 / 3.5;
  border-radius: 18px;
  padding: 5px;
  background: rgba(244, 241, 233, 0.05);
  border: 1px solid var(--hairline);
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.85);
  transition: transform 0.7s var(--ease);
}

.vcard-face {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 13px;
  border: 1px solid var(--hairline-soft);
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(244, 241, 233, 0.10), transparent 55%),
    linear-gradient(165deg, var(--chrome-800), var(--chrome-900) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  box-shadow: inset 0 1px 1px rgba(244, 241, 233, 0.10);
}

.vcard .chip { position: absolute; top: 14px; left: 14px; }

.vcard .name { font-size: 13px; font-weight: 500; color: var(--paper); line-height: 1.35; }
.vcard .value { font-size: 30px; margin: 2px 0 1px; }
.vcard .comps { font-size: 10.5px; color: var(--paper-45); letter-spacing: 0.01em; }

.vcard.is-hit .value { color: var(--gold-400); }

/* Foil shine — the only thing on the page allowed to move on its own. */
.vcard.is-hit .vcard-face::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(245, 206, 71, 0.16) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: shine 5.2s var(--ease) infinite;
}

@keyframes shine {
  0%, 62% { transform: translateX(-70%); }
  86%, 100% { transform: translateX(70%); }
}

.stage .vcard.back-l {
  position: absolute;
  transform: rotate(-7deg) translate(-108px, 16px) scale(0.86);
  opacity: 0.6;
  z-index: 1;
}

.stage .vcard.back-r {
  position: absolute;
  transform: rotate(6deg) translate(112px, 26px) scale(0.86);
  opacity: 0.6;
  z-index: 1;
}

.stage .vcard.front { position: relative; z-index: 2; }
.stage .vcard.front:hover { transform: translateY(-6px) rotate(-1deg); }

.ticker {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(19, 24, 32, 0.82);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  color: var(--paper-70);
}

.ticker .money { font-size: 17px; color: var(--paper); }

/* ---- Tier chips ------------------------------------------------------ */

.chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid;
}

.chip.bulk { color: var(--bulk); border-color: rgba(148, 163, 184, 0.45); background: rgba(148, 163, 184, 0.08); }
.chip.keeper { color: var(--keeper); border-color: rgba(45, 212, 191, 0.40); background: rgba(45, 212, 191, 0.07); }
.chip.hit { color: var(--gold-400); border-color: rgba(232, 185, 35, 0.45); background: rgba(232, 185, 35, 0.09); }

/* ---- Sections -------------------------------------------------------- */

section.block { padding: 56px 0; }

.section-head { max-width: 56ch; margin-bottom: 40px; }
.section-head .framelabel { margin-bottom: 18px; }
.section-head p { color: var(--paper-70); margin-top: 14px; font-size: 16px; }

.rowgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.rowgrid .core { padding: 26px 24px 28px; height: 100%; }

.rowgrid h3 { font-size: 17px; font-weight: 600; margin: 14px 0 8px; letter-spacing: -0.01em; }
.rowgrid p { font-size: 14px; color: var(--paper-70); }

.stepnum {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-400);
  border: 1px solid rgba(232, 185, 35, 0.35);
  background: rgba(232, 185, 35, 0.07);
}

/* Verdict line strip */
.verdictlines { display: flex; flex-direction: column; gap: 12px; }

.vline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: 16px;
  border: 1px solid var(--hairline-soft);
  background: rgba(26, 32, 41, 0.55);
  font-size: 15px;
  color: var(--paper-70);
}

.vline .money { color: var(--paper); font-size: 18px; }
.vline.hit-line .money { color: var(--gold-400); }
.vline .chip { flex-shrink: 0; }

/* Honest-math panel */
.mathpanel .core { padding: 44px 44px 48px; }
.mathpanel p { color: var(--paper-70); font-size: 16px; max-width: 62ch; margin-top: 14px; }

.bignum {
  font-size: clamp(40px, 5.5vw, 56px);
  color: var(--paper);
}

.coin-dots { list-style: none; margin-top: 26px; display: grid; gap: 12px; }

.coin-dots li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--paper-70);
  font-size: 15px;
}

.coin-dots li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateY(-2px);
}

/* ---- Legal articles -------------------------------------------------- */

/* The short version, in the app's own grammar: verdict lines. */
.factrows { display: grid; gap: 10px; margin: 0 0 38px; }

.factrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--hairline-soft);
  background: rgba(244, 241, 233, 0.035);
  font-size: 14px;
  color: var(--paper-70);
}

.factrow b { color: var(--paper); font-weight: 600; }
.factrow .chip { flex-shrink: 0; }

/* The deletion receipt — the app's card-back receipt, on paper. */
.receipt {
  max-width: 440px;
  margin: 20px 0 10px;
  padding: 22px 24px 30px;
  border-radius: 14px 14px 0 0;
  background: rgba(244, 241, 233, 0.045);
  border: 1px solid var(--hairline);
  border-bottom: none;
  position: relative;
}

.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 8px;
  background: linear-gradient(-45deg, transparent 5.5px, rgba(244, 241, 233, 0.045) 0) 0 0 / 11px 8px repeat-x,
    linear-gradient(45deg, transparent 5.5px, rgba(244, 241, 233, 0.045) 0) 0 0 / 11px 8px repeat-x;
}

.receipt .rhead {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-45);
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(244, 241, 233, 0.16);
}

.receipt .rrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(244, 241, 233, 0.16);
  font-size: 14px;
  color: var(--paper-70);
}

.receipt .rrow em {
  font-style: normal;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--keeper);
}

.receipt .rtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  font-weight: 600;
  color: var(--paper);
  font-size: 15px;
}

.receipt .rtotal .money { color: var(--gold-400); font-size: 19px; }


.legal-wrap { padding: 72px 0 40px; max-width: 780px; margin: 0 auto; }

.legal-wrap > .shell > .core { padding: clamp(28px, 5vw, 56px); }

article.legal h1 { font-size: clamp(34px, 5vw, 48px); }

article.legal .updated {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-45);
  margin: 14px 0 34px;
}

article.legal h2 {
  scroll-margin-top: 120px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 21px;
  margin: 42px 0 12px;
}

article.legal h2::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateY(-4px);
}

article.legal p, article.legal li { color: var(--paper-70); font-size: 15.5px; }
article.legal p + p { margin-top: 12px; }
article.legal ol { margin: 16px 0; padding-left: 24px; }
article.legal ol li { padding-left: 4px; }
article.legal ol li + li { margin-top: 10px; }
article.legal strong { color: var(--paper); font-weight: 600; }
article.legal a { color: var(--gold-400); border-bottom: 1px solid rgba(232, 185, 35, 0.3); transition: border-color 0.4s var(--ease); }
article.legal a:hover { border-color: var(--gold-400); }

article.legal ul { margin: 12px 0 12px 2px; list-style: none; display: grid; gap: 9px; }

article.legal ul li { display: flex; align-items: baseline; gap: 12px; }

article.legal ul li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateY(-2px);
}

/* ---- Footer ---------------------------------------------------------- */

footer.site {
  margin-top: 96px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }

footer.site a {
  font-size: 13px;
  color: var(--paper-70);
  transition: color 0.4s var(--ease);
}

footer.site a:hover { color: var(--paper); }

footer.site p { font-size: 12.5px; color: var(--paper-45); }

/* ---- Reveal choreography -------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}

.reveal.in { opacity: 1; transform: none; filter: none; }

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .vcard.is-hit .vcard-face::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- Mobile ---------------------------------------------------------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 64px 0 88px; gap: 72px; }
  .stage { min-height: 430px; }
  .stage .vcard.back-l { transform: rotate(-7deg) translate(-72px, 14px) scale(0.82); }
  .stage .vcard.back-r { transform: rotate(6deg) translate(76px, 22px) scale(0.82); }
  .rowgrid { grid-template-columns: 1fr; }
  .navpill a.navlink { padding: 8px 10px; }
  section.block { padding: 40px 0; }
  footer.site { flex-direction: column; align-items: flex-start; }
}
