/* SwipeStatic shared tokens + components (landing + prototype). */
:root {
  --mat: #0E5A47;        /* cutting-mat green */
  --mat-deep: #0A4537;
  --paper: #F2F5F1;
  --ink: #0B1310;
  --ink-soft: #3E4A45;
  --keep: #FFD23F;       /* stamp yellow */
  --kill: #FF4B3E;       /* stamp red */
  --more: #4D7CFF;       /* stamp blue */
  --revise: #FF9A3C;     /* stamp orange */
  --new: #C3B1FF;        /* stamp lilac */
  --white: #FFFFFF;
  --line: rgba(11, 19, 16, .12);

  --f-display: "Anybody", "Arial Black", sans-serif;
  --f-body: "Figtree", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;

  --r-card: 14px;
  --shadow-hard: 4px 5px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--more); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cutting mat: minor grid every 24px, major every 120px. */
.mat {
  background-color: var(--mat);
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  color: var(--white);
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: 21px; letter-spacing: -.02em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--keep); color: var(--ink); font-weight: 700; font-size: 16px; cursor: pointer;
  box-shadow: var(--shadow-hard); transition: transform .12s, box-shadow .12s; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: 4px 5px 0 rgba(0,0,0,.25); }

/* Deck */
.deck { position: relative; width: var(--card-w, 240px); aspect-ratio: 9 / 16; outline: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.deck:focus-visible { outline: 3px dashed var(--keep); outline-offset: 10px; border-radius: var(--r-card); }
.deck5 .stack { position: absolute; inset: 0; }
.card {
  --i: 0;
  position: absolute; inset: 0; border-radius: var(--r-card); overflow: hidden; background: #222;
  border: 2.5px solid var(--ink); box-shadow: 0 2px 0 var(--ink), 0 18px 40px rgba(0,0,0,.28);
  transform: translateY(calc(var(--i) * 14px)) scale(calc(1 - var(--i) * .055));
  transform-origin: 50% 100%;
  transition: transform .32s cubic-bezier(.2,.8,.3,1);
  cursor: grab; will-change: transform;
}
.card.is-dragging { transition: none; cursor: grabbing; }
.card.is-leaning { transition: transform .5s cubic-bezier(.3,.6,.3,1); }
.card.is-flying { transition: transform .38s cubic-bezier(.4,.1,.7,.6); pointer-events: none; }
.card.is-returning { transition: transform .38s cubic-bezier(.2,.9,.3,1.1); }
.card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.card:not(.is-top) .stamp { display: none; }

/* Rubber stamp on the top card; text and color follow the move you're aiming at. */
.stamp {
  position: absolute; top: 9%; padding: 4px 12px 2px; border: 3px solid var(--ink); border-radius: 8px; opacity: 0;
  font-family: var(--f-display); font-weight: 900; font-stretch: 80%; font-size: clamp(24px, 8vw, 38px);
  letter-spacing: .02em; text-transform: uppercase; line-height: 1; pointer-events: none; white-space: nowrap;
  box-shadow: 3px 4px 0 var(--ink); transition: opacity .08s linear;
}
.stamp.side-right { left: 8%; transform: rotate(-14deg); }
.stamp.side-left { right: 8%; transform: rotate(14deg); }
.stamp.side-up { left: 50%; top: auto; bottom: 12%; transform: translateX(-50%) rotate(-4deg); }
.stamp-launch { background: var(--keep); color: var(--ink); }
.stamp-more { background: var(--more); color: var(--white); }
.stamp-new { background: var(--new); color: var(--ink); }
.stamp-revise { background: var(--revise); color: var(--ink); }
.stamp-kill { background: var(--kill); color: var(--white); }

/* Aim targets around the deck: the two on the side you're dragging toward fade in. */
.targets { position: absolute; inset: 0; pointer-events: none; z-index: 40; }
.tgt {
  --c: var(--white); position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 2.5px solid var(--ink); box-shadow: 2px 3px 0 var(--ink);
  opacity: 0; transform: scale(.55); transition: opacity .15s, transform .18s cubic-bezier(.2,.9,.3,1.3), background .15s;
}
.tgt svg { width: 20px; height: 20px; }
.tgt em {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 6px 2px; border-radius: 5px; background: var(--ink); color: var(--white);
}
.tgt-more { left: 100%; top: 18%; --c: var(--more); }
.tgt-launch { left: 100%; top: 74%; --c: var(--keep); }
.tgt-revise { left: 0; top: 18%; --c: var(--revise); }
.tgt-kill { left: 0; top: 74%; --c: var(--kill); }
.tgt-new { left: 50%; top: 0; --c: var(--new); }
.tgt-new em { top: 50%; left: calc(100% + 6px); transform: translateY(-50%); }
.tgt-more em, .tgt-launch em { left: auto; right: -6px; transform: none; }
.tgt-revise em, .tgt-kill em { left: -6px; transform: none; }
.deck5[data-side="right"] .tgt-more, .deck5[data-side="right"] .tgt-launch,
.deck5[data-side="left"] .tgt-revise, .deck5[data-side="left"] .tgt-kill,
.deck5[data-side="up"] .tgt-new, .deck5[data-side="up"] .tgt-more, .deck5[data-side="up"] .tgt-revise { opacity: 1; transform: scale(1); }
.tgt.is-aim { background: var(--c); transform: scale(1.3) !important; opacity: 1 !important; }
.deck5.top-insight .targets { display: none; }

/* "What I learned" cards that slide into the stack */
.card--insight {
  background: var(--ink); color: var(--white); padding: 9% 9% 8%; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 14px 14px;
}
.card--insight .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--keep); }
.card--insight h3 { margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 105%; font-size: clamp(20px, 6.6vw, 28px); line-height: 1; letter-spacing: -.02em; }
.card--insight ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.card--insight li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.3; color: rgba(255,255,255,.88); }
.card--insight li::before { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 3px; background: var(--keep); }
.card--insight .go { margin-top: auto; font-family: var(--f-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* Feed-crop overlay: shades what Meta trims in a 4:5 feed placement (285/1920 top and bottom). */
.crop { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; }
.crop::before, .crop::after { content: ""; position: absolute; left: 0; right: 0; height: 14.84%; background: rgba(11,19,16,.72); }
.crop::before { top: 0; border-bottom: 2px dashed var(--keep); }
.crop::after { bottom: 0; border-top: 2px dashed var(--keep); }
.show-crop .card.is-top .crop { opacity: 1; }

/* Swipe controls: kill · revise · new · more · launch, laid out like the gestures. */
.controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ctl {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; padding: 0;
  border: 2.5px solid var(--ink); background: var(--white); cursor: pointer; box-shadow: 3px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.ctl:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.ctl svg { width: 24px; height: 24px; }
.ctl-kill, .ctl-launch { width: 60px; height: 60px; }
.ctl-kill svg, .ctl-launch svg { width: 27px; height: 27px; }
.ctl-launch { background: var(--keep); }
.ctl-kill, .tgt-kill { color: var(--kill); }
.tgt-kill.is-aim { color: var(--white); }
.ctl-revise, .ctl-more { width: 50px; height: 50px; }
.ctl-new { width: 46px; height: 46px; }
.ctl-new svg { width: 20px; height: 20px; }
.ctl-small { width: 38px; height: 38px; box-shadow: 2px 3px 0 var(--ink); }
.ctl-small svg { width: 17px; height: 17px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; border: 2.5px solid var(--ink);
  background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; box-shadow: var(--shadow-hard);
  transition: transform .25s, opacity .25s;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }

.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
