:root {
  color-scheme: dark;
  --bg: #09090f;
  --surface: #15151c;
  --surface-strong: #241f36;
  --ink: #ffffff;
  --muted: #e4e4e7;
  --faint: #a1a1aa;
  --line: #2d2a3a;
  --line-strong: #454052;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft: #a5b4fc;
  --accent-warm: #f89a4d;
  --accent-ink: #ffffff;
  --accent-tint: rgba(99, 102, 241, 0.14);
  --key-light: rgba(255, 255, 255, 0.09);
  --radius: 4px;
  --max: 1240px;
  /* map-pin silhouette shared by shred name markers + reveal dots */
  --pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 22.5S3.5 15.7 3.5 9.5a8.5 8.5 0 1 1 17 0c0 6.2-8.5 13-8.5 13zm0-9.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #fdfdfc;
    --surface: #ffffff;
    --surface-strong: #e9e8e4;
    --ink: #09090b;
    --muted: #27272a;
    --faint: #52525b;
    --line: #e7e6ef;
    --line-strong: #d2d0dc;
    --accent: #6366f1;
    --accent-hover: #4338ca;
    --accent-soft: #4338ca;
    --accent-warm: #b45309;
    --accent-ink: #ffffff;
    --accent-tint: rgba(99, 102, 241, 0.10);
    --key-light: rgba(9, 9, 11, 0.025);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: min(var(--max), calc(100% - 56px)); margin-inline: auto; }

/* nav / cta / crumb — landing grammar */
.uc-nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.uc-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 750; letter-spacing: -0.04em; text-decoration: none; }
.uc-brand span.mark { width: 18px; height: 18px; border: 1px solid rgba(255,255,255,0.34); border-radius: 3px; background: var(--accent); transform: rotate(-8deg); }
.uc-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 21px;
  border: 1px solid transparent; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.uc-cta:hover { background: var(--accent-hover); }
.uc-cta:active { transform: translateY(1px); }
.uc-cta.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.uc-cta.ghost:hover { background: var(--accent-tint); border-color: var(--accent); }
.uc-cta:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.uc-eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.uc-eyebrow a { text-decoration: none; }
.uc-eyebrow a:hover { color: var(--accent-soft); }

/* hero — copy left, tear scene right */
.uc-hero { position: relative; overflow: hidden; }
.uc-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 72% -30%, var(--key-light), transparent 62%); }
.uc-hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(36px, 5vw, 80px); align-items: center;
  padding-block: clamp(56px, 8vw, 110px);
}
.uc-hero h1 { max-width: 13ch; margin: 0 0 22px; font-size: clamp(44px, 5vw, 72px); font-weight: 680; letter-spacing: -0.07em; line-height: 0.9; text-wrap: balance; }
.uc-hero .lead { max-width: 44ch; margin: 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; text-wrap: pretty; }
.uc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.uc-note { margin: 18px 0 0; color: var(--faint); font-size: 14px; }

/* the receipt paper + torn shreds — fixed light paper, fixed inks (same in both themes) */
.uc-scene { position: relative; height: 480px; }
.paper {
  position: absolute; left: 0; top: 28px; width: 286px; padding: 22px 22px 26px;
  background: #fbfaf6; color: #241c38;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  border: 1px solid rgba(36,28,56,0.12); border-radius: 2px;
  transform: rotate(-3deg);
  box-shadow: 0 2px 6px rgba(36,28,56,0.08), 0 26px 52px -20px rgba(36,28,56,0.55);
  clip-path: polygon(0 0,100% 0,100% calc(100% - 7px),94% 100%,87% calc(100% - 6px),78% calc(100% - 1px),69% calc(100% - 7px),60% calc(100% - 2px),50% calc(100% - 7px),40% calc(100% - 1px),31% calc(100% - 8px),22% calc(100% - 2px),13% calc(100% - 7px),6% 100%,0 calc(100% - 6px));
}
.paper .head { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.paper .sub { margin: 3px 0 0; text-align: center; font-size: 10.5px; color: rgba(36,28,56,0.5); }
.p-rule { margin: 12px 0; border: none; border-top: 1px dashed rgba(36,28,56,0.3); }
.p-row { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: 12px; white-space: nowrap; }
.p-row.tot { font-weight: 700; }
.p-row.dim { color: rgba(36,28,56,0.55); }
.shred {
  position: absolute; width: 218px; padding: 15px 17px 13px;
  background: #fbfaf6; color: #241c38;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(36,28,56,0.06), 0 18px 40px -20px rgba(4,2,8,0.75);
  clip-path: polygon(0 6px,6% 0,13% 7px,22% 2px,31% 8px,40% 1px,50% 7px,60% 2px,70% 8px,80% 1px,90% 6px,100% 2px,100% 100%,0 100%);
}
.shred .p-row { font-size: 11.5px; }
.shred .who { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-family: "Bricolage Grotesque", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.shred .who::before { content: ""; width: 10px; height: 10px; flex: none; background: currentColor; -webkit-mask: var(--pin) center / contain no-repeat; mask: var(--pin) center / contain no-repeat; }
.shred .p-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 2px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.shred.s1 { right: 46px; top: 0; transform: rotate(5deg); }
.shred.s2 { right: 0; top: 176px; transform: rotate(-4deg); }
.shred.s3 { right: 88px; bottom: 0; transform: rotate(2deg); }
.stamp {
  position: absolute; top: 8px; right: 10px; padding: 3px 7px;
  font-family: "Bricolage Grotesque", sans-serif; font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1.5px solid; border-radius: 3px; transform: rotate(8deg); opacity: 0.9; background: rgba(251,250,246,0.7);
}
/* flashlight reveal — hover the receipt, a circle under the cursor shows who claimed each line */
.paper-reveal {
  pointer-events: none; opacity: 0; background: #f1edfc; border-color: rgba(79,70,229,0.35);
  clip-path: circle(0px at var(--rx, 50%) var(--ry, 40%));
  transition: opacity 200ms ease;
}
.paper:hover + .paper-reveal { opacity: 1; clip-path: circle(76px at var(--rx, 50%) var(--ry, 40%)); }
.paper-reveal::after {
  content: "WHO HAD WHAT"; position: absolute; top: 10px; right: -14px; padding: 3px 7px;
  font-family: "Bricolage Grotesque", sans-serif; font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em;
  color: #4f46e5; border: 1.5px solid; border-radius: 3px; transform: rotate(8deg); background: rgba(251,250,246,0.9);
}
.rdot { display: inline-block; width: 9px; height: 9px; margin-left: 4px; background: currentColor; vertical-align: -1px; -webkit-mask: var(--pin) center / contain no-repeat; mask: var(--pin) center / contain no-repeat; }

/* handwritten accent word */
.hand { font-family: "Caveat", cursive; font-weight: 600; font-size: 1.18em; letter-spacing: 0; line-height: 0.8; }

/* fixed inks on fixed light paper — never theme vars */
.c-a { color: #047857; }
.c-b { color: #0369a1; }
.c-c { color: #4f46e5; }
.c-d { color: #b45309; }

/* sections — landing grammar, no boxes */
.uc-section { padding-block: clamp(72px, 9vw, 116px); }
.uc-section.alt { background: var(--surface); }
.uc-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  align-items: end; gap: clamp(32px, 7vw, 96px); margin-bottom: 52px;
}
.uc-section h2 { max-width: 14ch; margin: 0; font-size: clamp(36px, 4.4vw, 58px); font-weight: 650; letter-spacing: -0.055em; line-height: 0.98; text-wrap: balance; }
.uc-intro p { max-width: 44ch; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.uc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.uc-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-content: start; gap: 18px; }
.uc-step .n { color: var(--accent-warm); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; }
.uc-step h3 { margin: 0 0 10px; font-size: 22px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; }
.uc-step p { max-width: 34ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.uc-callout { max-width: 56ch; padding: 4px 0; }
.uc-callout p { margin: 0; font-size: clamp(20px, 2.3vw, 27px); font-weight: 560; letter-spacing: -0.03em; line-height: 1.3; text-wrap: pretty; }
.uc-callout em { font-style: normal; color: var(--accent); }

/* photo — edge to edge inside a surface band, no card chrome */
.uc-photo-band { background: var(--surface); }
.uc-photo { overflow: hidden; background: var(--surface-strong); }
.uc-photo img { width: 100%; height: auto; }
.uc-photo-cap { margin: 0; padding: 18px 0 26px; color: var(--faint); font-size: 13px; }

.uc-section h2 + .uc-related { margin-top: 36px; }
.uc-related { display: flex; flex-wrap: wrap; gap: 10px; }
.uc-related a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}
.uc-related a:hover { color: var(--ink); border-color: var(--accent); }

.uc-band { padding-block: clamp(72px, 10vw, 132px); text-align: center; background: var(--surface); }
.uc-band h2 { max-width: 16ch; margin: 0 auto 26px; font-size: clamp(38px, 5vw, 66px); font-weight: 660; letter-spacing: -0.06em; line-height: 0.95; text-wrap: balance; }
.uc-band .uc-actions { justify-content: center; margin-top: 0; }

.uc-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 34px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.uc-foot a { color: var(--muted); text-decoration: none; }
.uc-foot a:hover { color: var(--ink); }
.uc-foot .links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 940px) {
  .uc-hero-grid { grid-template-columns: 1fr; }
  .uc-intro { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .uc-steps { grid-template-columns: 1fr; }
  .uc-actions { display: grid; }
  .uc-actions .uc-cta { width: 100%; }
  .uc-scene { height: 560px; }
  .paper { width: 204px; padding: 16px 15px 20px; top: 0; left: 0; }
  .paper .p-row { font-size: 10px; }
  .paper .head { font-size: 11px; }
  .shred { width: 168px; padding: 12px 13px 11px; }
  .shred .p-row { font-size: 10px; }
  .shred .p-total { font-size: 11px; }
  .shred.s1 { right: 0; top: 12px; }
  .shred.s2 { right: 10px; top: 210px; }
  .shred.s3 { right: 26px; bottom: 8px; left: auto; }
}
/* hover shred motion runs for everyone, regardless of OS reduced-motion (product decision) */
.uc-scene .shred { transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1); }
.uc-scene:hover .shred.s1 { transform: rotate(6deg) translate(6px, -6px); }
.uc-scene:hover .shred.s2 { transform: rotate(-5deg) translate(10px, 0); }
.uc-scene:hover .shred.s3 { transform: rotate(3deg) translate(4px, 6px); }
