/* PEELED — post a note, get your PFP back as a holo sticker. Cream paper, candy colours, foil shimmer. */
:root {
  --paper: #fff8ef;
  --paper-2: #fdeedd;
  --card: #ffffff;
  --ink: #1b1530;
  --ink-2: #4a4262;
  --mute: #8d86a3;
  --line: rgba(27, 21, 48, 0.1);
  --berry: #ff3d7f;
  --tang: #ff8a3d;
  --lime: #b6f23a;
  --sky: #3db7ff;
  --grape: #8b5cff;
  --lemon: #ffd83d;
  --foil: conic-gradient(from 210deg, #ff9ad5, #ffd36e, #b6f23a, #6fe3ff, #a58bff, #ff9ad5);
  --display: "Lilita One", system-ui, sans-serif;
  --body: "Outfit", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pop: 0 4px 0 var(--ink);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); overflow-x: clip; scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; transition: opacity 0.22s ease, transform 0.22s ease;
  background-image: radial-gradient(rgba(27, 21, 48, 0.07) 1.2px, transparent 1.2px); background-size: 22px 22px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }
.muted { color: var(--mute); }

/* ---------- page + scroll animations ---------- */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.js body { animation: page-in 0.55s var(--ease) both; }
body.leaving { opacity: 0; transform: translateY(-6px); }
.js [data-r] { opacity: 0; transform: translateY(22px) rotate(var(--tilt, 0deg)); filter: blur(4px); transition: opacity 0.75s var(--ease) var(--d, 0ms), transform 0.75s var(--ease) var(--d, 0ms), filter 0.75s var(--ease) var(--d, 0ms); }
.js [data-r].in { opacity: 1; transform: rotate(var(--tilt, 0deg)); filter: none; }
@keyframes fresh { from { opacity: 0; transform: translateY(-12px) scale(0.97); } to { opacity: 1; transform: none; } }
.fresh { animation: fresh 0.55s var(--ease) both; }
@keyframes shimmer { to { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(2deg); } }
@keyframes blink { 50% { opacity: 0.3; } }

/* ---------- CA bar + nav ---------- */
.ca { background: var(--ink); color: #f4efff; font-family: var(--mono); font-size: 12px; }
.ca .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; min-width: 0; }
.ca b { background: var(--foil); color: var(--ink); padding: 1px 9px; border-radius: 6px; font-weight: 700; flex: none; }
.ca a.addr, .ca span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca a.addr { text-decoration: underline; text-underline-offset: 3px; }
.ca button { flex: none; background: transparent; border: 1px solid rgba(244, 239, 255, 0.35); border-radius: 6px; padding: 2px 10px; font-family: var(--mono); font-size: 11px; color: inherit; }
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 2px solid var(--ink); }
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 27px; letter-spacing: 0.01em; }
.brand svg { width: 40px; height: 40px; transition: transform 0.4s var(--ease); }
.brand:hover svg { transform: rotate(-14deg) scale(1.06); }
.links { display: flex; gap: 6px; margin-left: auto; font-weight: 700; font-size: 15px; }
.links a { padding: 7px 13px; border-radius: 999px; transition: background 0.15s; }
.links a:hover { background: var(--paper-2); }
.links a[aria-current] { background: var(--ink); color: var(--paper); }
.right { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--ink); background: var(--card); box-shadow: var(--pop); transition: transform 0.12s, box-shadow 0.12s; }
.icon-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.menu-btn { display: none; }
.drawer { display: none; border-top: 2px solid var(--ink); padding: 8px 28px 16px; }
.drawer a { display: block; padding: 12px 0; font-weight: 700; border-bottom: 1px dashed var(--line); }
.nav.open .drawer { display: block; animation: fresh 0.3s var(--ease); }

/* ---------- buttons, chips, labels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); border-radius: 14px; padding: 11px 20px; font-weight: 800; font-size: 15px; box-shadow: var(--pop); transition: transform 0.12s var(--ease), box-shadow 0.12s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.go { background: var(--berry); color: #fff; }
.btn.foil { background: var(--foil); background-size: 200% 100%; animation: shimmer 4s linear infinite; }
.btn.big { padding: 15px 26px; font-size: 17px; border-radius: 16px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 13px; background: var(--card); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grape); font-weight: 700; }
.eyebrow::before { content: "✦"; color: var(--berry); }
.sample { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; border: 1.5px dashed var(--ink-2); color: var(--ink-2); border-radius: 6px; padding: 2px 8px; background: var(--paper); }
.h1 { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 8.6vw, 116px); line-height: 0.9; letter-spacing: -0.01em; }
.h1 .hl { display: inline-block; background: var(--foil); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 2px var(--ink); animation: shimmer 6s linear infinite; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 62px); line-height: 0.95; margin-top: 10px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; margin-top: 18px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.block { padding: 84px 0; }
.panel { background: var(--card); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); padding: 22px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.status { display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px 5px 6px; background: var(--card); font-weight: 700; font-size: 13.5px; margin-bottom: 22px; }
.status i { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.showcase { position: relative; justify-self: center; width: min(430px, 100%); }
.showcase .peel { background: var(--card); border: 2px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink); padding: 18px; transform: rotate(2.5deg); }
.showcase .art { aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 2px solid var(--ink); }
.showcase .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 14px; font-weight: 700; }
.showcase .btns { display: flex; gap: 10px; margin-top: 14px; }
.showcase .btns .btn { flex: 1; }
.showcase .tag { position: absolute; top: -18px; left: -18px; transform: rotate(-10deg); background: var(--lemon); border: 2px solid var(--ink); border-radius: 12px; padding: 6px 12px; font-family: var(--display); font-size: 22px; box-shadow: var(--pop); z-index: 2; animation: wobble 4s ease-in-out infinite; }

/* ---------- feed + stats ---------- */
.board { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.feed { display: grid; gap: 10px; margin-top: 14px; max-height: 430px; overflow: hidden; -webkit-mask: linear-gradient(#000 78%, transparent); mask: linear-gradient(#000 78%, transparent); }
.post { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); }
.post .av { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; color: #fff; }
.post b { font-weight: 800; }
.post p { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post .st { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 2px solid var(--ink); white-space: nowrap; }
.st.done { background: var(--lime); } .st.run { background: var(--lemon); } .st.q { background: var(--card); } .st.skip { background: #ffd0dc; }
.stats { display: grid; gap: 14px; }
.stat { background: var(--card); border: 2px solid var(--ink); border-radius: 20px; padding: 16px 20px; box-shadow: 0 5px 0 var(--c, var(--ink)); }
.stat span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 1; margin-top: 4px; }
.stat small { color: var(--mute); font-size: 14px; }
.stat .bar { height: 10px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin-top: 10px; background: var(--paper); }
.stat .bar i { display: block; height: 100%; background: var(--foil); }
.contracts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.contract { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 14px; padding: 9px 14px; background: var(--card); font-size: 13px; min-width: 0; }
.contract span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); font-weight: 700; flex: none; }
.contract code { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }

/* ---------- sticker grid (gallery) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 2px solid var(--ink); border-radius: 999px; padding: 5px 13px; background: var(--card); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }
.filters button i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--c); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tools { display: flex; gap: 10px; margin: 16px 0 22px; flex-wrap: wrap; }
.tools input, .tools select { border: 2px solid var(--ink); border-radius: 12px; padding: 9px 14px; background: var(--card); font-family: var(--mono); font-size: 13px; }
.tools input { flex: 1; min-width: 200px; }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.stk { position: relative; display: block; border-radius: 18px; transition: transform 0.25s var(--ease); }
.stk:nth-child(3n) { --tilt: -2deg; } .stk:nth-child(3n + 1) { --tilt: 1.5deg; } .stk:nth-child(3n + 2) { --tilt: -0.5deg; }
.stk.in:hover { transform: rotate(0) scale(1.06); z-index: 2; }
.stk .art { aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.stk b { position: absolute; left: 8px; bottom: 10px; font-family: var(--mono); font-size: 10.5px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px; padding: 1px 6px; }

/* ---------- steps + machine ---------- */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.step { background: var(--card); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--c); padding: 24px; }
.step .n { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--mute); }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; margin-top: 6px; }
.step p { color: var(--ink-2); margin-top: 10px; }
.step .code { display: flex; align-items: center; gap: 10px; margin-top: 14px; border: 2px dashed var(--ink); border-radius: 12px; padding: 10px 14px; background: var(--paper); font-family: var(--mono); font-size: 14px; }
.step .code b { color: var(--berry); }
.step .code button { margin-left: auto; }
.step .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.machine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.part { background: var(--card); border: 2px solid var(--ink); border-radius: 20px; padding: 20px; box-shadow: 0 5px 0 var(--ink); }
.part .em { width: 50px; height: 50px; border-radius: 14px; border: 2px solid var(--ink); background: var(--c); display: grid; place-items: center; font-size: 24px; }
.part .n { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--mute); margin-top: 12px; }
.part h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.05; margin-top: 2px; }
.part p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.promise div { border: 2px solid var(--ink); border-radius: 18px; padding: 18px 20px; background: var(--paper-2); }
.promise b { font-family: var(--display); font-weight: 400; font-size: 24px; display: block; }
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: center; max-width: 820px; }
.ba .card { background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 14px; box-shadow: 0 6px 0 var(--ink); }
.ba .card .art { aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid var(--ink); }
.ba .card span { display: block; font-family: var(--mono); font-size: 12px; font-weight: 700; margin-top: 10px; }
.ba .arrow { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); background: var(--foil); display: grid; place-items: center; font-size: 24px; box-shadow: var(--pop); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 2px solid var(--ink); border-radius: 18px; background: var(--card); box-shadow: 0 4px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 800; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 26px; line-height: 0.8; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { border-top: 2px solid var(--ink); background: var(--ink); color: #f4efff; padding: 64px 0 36px; margin-top: 60px; }
.foot .big { font-family: var(--display); font-size: clamp(90px, 17vw, 230px); line-height: 0.82; background: var(--foil); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s linear infinite; }
.foot .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 26px; font-size: 14px; color: #cfc8e6; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a:hover { color: #fff; }
.legal { font-size: 12.5px; color: #9f97bd; margin-top: 18px; max-width: 70em; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .board { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .machine { grid-template-columns: 1fr 1fr; }
  .contracts, .promise { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .links, .dl { display: none; }
  .menu-btn { display: grid; }
  .right { margin-left: auto; }
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .steps, .machine { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; justify-items: center; }
  .block { padding: 60px 0; }
  .showcase .tag { left: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .js body, .fresh, .btn.foil, .h1 .hl, .foot .big, .showcase .tag { animation: none; }
  .js [data-r] { opacity: 1; transform: none; filter: none; transition: none; }
  body { transition: none; }
}
