/* Snip website - same pixel-fire look as the app */
@font-face { font-family: Pixelify; src: url(fonts/PixelifySans.ttf); font-display: swap; }
@font-face { font-family: Silk; src: url(fonts/Silkscreen-Regular.ttf); font-display: swap; }
@font-face { font-family: Silk; src: url(fonts/Silkscreen-Bold.ttf); font-weight: bold; font-display: swap; }
@font-face { font-family: Press; src: url(fonts/PressStart2P-Regular.ttf); font-display: swap; }

:root {
  --bg: #0d0806; --bg2: #110b09; --card: #180f0b; --cardHi: #23160f; --stroke: #4d2d1b;
  --text2: #e6c299; --text3: #997357;
  --yellow: #ffd63d; --amber: #ffad29; --orange: #ff8a1f; --flame: #f5611a; --ember: #e8331c; --deep: #781408;
  --hot: #fff7c7;
  --hue: 0deg;          /* the logo easter egg turns this */
  --sat: 1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body { font-family: Pixelify, system-ui, sans-serif; color: var(--hot); background: var(--bg); font-size: 18px;
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--orange); }
img { display: block; max-width: 100%; }
.recolour { filter: hue-rotate(var(--hue)) saturate(var(--sat)); transition: filter .8s ease; }

/* pixel corners, like PixelShape in the app */
.px { clip-path: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px,
  calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px),
  calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%,
  8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px)); }
.box { background: linear-gradient(180deg, var(--yellow), var(--orange) 45%, var(--ember)); padding: 2px; }
.box > .fill { background: var(--card); height: 100%; position: relative; overflow: hidden; }
.shadow { filter: drop-shadow(5px 5px 0 #000); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* nav */
nav { position: sticky; top: 0; z-index: 20; background: rgba(13, 8, 6, .82); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid #2a1810; }
nav .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--hot); cursor: pointer;
  user-select: none; -webkit-user-select: none; }
.brand img { width: 38px; height: 38px; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 #000); }
.wm { font-family: Press, monospace; font-size: 18px; letter-spacing: 0; text-shadow: 3px 3px 0 var(--deep); }
.wm b { color: var(--orange); font-weight: normal; }
nav .links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav .links a { font-family: Silk; font-size: 13px; letter-spacing: 1.5px; color: var(--text2); text-decoration: none; }
nav .links a:hover { color: var(--hot); }
nav .links a.btn { color: #1a0905; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  font-family: Silk; font-weight: bold; font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  color: #1a0905; padding: 16px 26px; position: relative; cursor: pointer; border: 0;
  background: linear-gradient(180deg, var(--yellow), var(--orange) 55%, var(--flame));
  filter: drop-shadow(4px 4px 0 #000); transition: transform .12s ease, filter .12s ease; }
.btn:hover { transform: translate(-2px, -2px); filter: drop-shadow(6px 6px 0 #000) brightness(1.08); }
.btn:active { transform: translate(2px, 2px); filter: drop-shadow(1px 1px 0 #000); }
.btn.ghost { background: var(--cardHi); color: var(--hot); box-shadow: inset 0 0 0 2px var(--stroke); }
.btn.small { padding: 10px 16px; font-size: 12px; }
.btn small { font-family: Pixelify; font-weight: normal; letter-spacing: 0; text-transform: none; font-size: 14px; opacity: .8; }

/* hero */
.hero { position: relative; padding: 80px 0 250px; text-align: center; overflow: hidden; }
.hero .glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 38%, rgba(255, 138, 31, .32), rgba(232, 51, 28, .12) 30%, transparent 58%); }
#fire { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 230px; image-rendering: pixelated;
  pointer-events: none; opacity: .95;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
  mask-image: linear-gradient(to top, #000 55%, transparent); }
.hero .icon { width: 220px; height: 220px; margin: 0 auto 34px; cursor: pointer; position: relative; z-index: 2;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6)); transition: transform .2s ease; user-select: none; -webkit-user-select: none; }
.hero .icon:hover { transform: scale(1.03) rotate(-2deg); }
.hero h1 { font-family: Press, monospace; font-weight: normal; font-size: 84px; line-height: 1.1;
  text-shadow: 7px 7px 0 var(--deep); position: relative; z-index: 2; }
.hero h1 b { color: var(--orange); font-weight: normal; }
.hero .tag { font-size: 28px; color: var(--text2); margin: 26px 0 40px; position: relative; z-index: 2; }
.cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.meta { margin-top: 24px; font-size: 15px; color: var(--text3); position: relative; z-index: 2; }
.hint { font-family: Silk; font-size: 11px; letter-spacing: 1.5px; color: var(--text3); margin-top: 10px; position: relative; z-index: 2; }

/* sections */
section { padding: 90px 0; position: relative; }
.kicker { font-family: Silk; font-size: 13px; letter-spacing: 3px; color: var(--orange); text-transform: uppercase; margin-bottom: 14px; }
h2 { font-family: Press, monospace; font-weight: normal; font-size: 30px; line-height: 1.45; text-shadow: 4px 4px 0 var(--deep); margin-bottom: 18px; }
h3 { font-family: Press, monospace; font-weight: normal; font-size: 19px; line-height: 1.5; text-shadow: 3px 3px 0 var(--deep); margin-bottom: 14px; }
.fire-text { background: linear-gradient(90deg, var(--yellow), var(--orange) 45%, var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 21px; color: var(--text2); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 54px; align-items: center; margin-top: 80px; }
.feature:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
.feature:nth-child(even) .shot { order: 2; }
.shot { box-shadow: 0 0 0 2px #3a2214, 0 30px 70px rgba(0, 0, 0, .55), 0 0 90px rgba(232, 51, 28, .14); border-radius: 14px; overflow: hidden; }
.feature p { color: var(--text2); }
.feature ul { list-style: none; margin-top: 16px; }
.feature li { padding-left: 24px; position: relative; color: var(--text2); margin: 6px 0; font-size: 17px; }
.feature li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 9px; height: 9px; background: var(--orange); box-shadow: 2px 2px 0 var(--deep); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; }
.step > .fill { padding: 28px 26px; }
.step .n { font-family: Press, monospace; font-size: 30px; color: var(--orange); text-shadow: 3px 3px 0 var(--deep); margin-bottom: 18px; }
.step p { color: var(--text2); font-size: 17px; }

/* price */
.price { max-width: 560px; margin: 46px auto 0; }
.price > .fill { padding: 40px 36px; text-align: center; }
.price .amt { font-family: Press, monospace; font-size: 64px; text-shadow: 6px 6px 0 var(--deep); margin: 6px 0 4px; }
.price .once { font-family: Silk; letter-spacing: 2px; font-size: 13px; color: var(--text3); }
.price ul { list-style: none; text-align: left; margin: 28px auto 30px; max-width: 380px; }
.price li { padding: 7px 0 7px 30px; position: relative; color: var(--text2); border-bottom: 1px dashed #2f1d13; }
.price li::before { content: "✦"; position: absolute; left: 4px; color: var(--orange); }
.price .btn { width: 100%; }
.price .free { margin-top: 16px; font-size: 15px; color: var(--text3); }

/* changelog */
.log { max-width: 780px; margin: 40px auto 0; display: grid; gap: 22px; text-align: left; }
.entry > .fill { padding: 26px 28px; }
.entry .v { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.entry .v b { font-family: Press, monospace; font-weight: normal; font-size: 18px; color: var(--hot); text-shadow: 3px 3px 0 var(--deep); }
.entry .v span { font-family: Silk; font-size: 12px; letter-spacing: 1.5px; color: var(--text3); }
.entry .v i { font-style: normal; color: var(--orange); }
.entry ul { list-style: none; }
.entry li { padding-left: 22px; position: relative; color: var(--text2); margin: 5px 0; font-size: 17px; }
.entry li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; background: var(--ember); }
.entry.latest > .fill::after { content: "LATEST"; position: absolute; top: 22px; right: 24px; font-family: Silk; font-weight: bold;
  font-size: 11px; letter-spacing: 2px; color: #1a0905; background: var(--yellow); padding: 4px 9px; }

/* faq */
.faq { max-width: 780px; margin: 40px auto 0; }
details { border-bottom: 2px dashed #2a1810; padding: 20px 4px; }
summary { cursor: pointer; list-style: none; font-family: Silk; font-weight: bold; font-size: 15px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--hot); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: Press; color: var(--orange); }
details[open] summary::after { content: "-"; }
details p { color: var(--text2); margin-top: 12px; font-size: 17px; }

footer { border-top: 2px solid #2a1810; padding: 40px 0 60px; color: var(--text3); font-size: 15px; }
footer .wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
footer a { color: var(--text2); text-decoration: none; }
footer .grow { flex: 1; }

/* simple pages (thanks, legal) */
.page { max-width: 760px; margin: 0 auto; padding: 80px 28px 100px; }
.page p, .page li { color: var(--text2); margin: 12px 0; }
.page h2 { margin-top: 44px; font-size: 22px; }
.page ul { padding-left: 22px; }
.keybox > .fill { padding: 28px; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  nav .links a:not(.btn) { display: none; }
  .hero { padding: 50px 0 200px; }
  #fire { height: 180px; }
  .hero h1 { font-size: 52px; }
  .hero .icon { width: 160px; height: 160px; }
  .hero .tag { font-size: 22px; }
  h2 { font-size: 24px; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 26px; margin-top: 60px; }
  .feature:nth-child(even) .shot { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .price .amt { font-size: 48px; }
}

/* rainbow easter egg: the dot goes rainbow, like the app */
body.rainbow .hero h1 b, body.rainbow .wm b { filter: none;
  background: linear-gradient(135deg, #ff3b3b, #ffb13b, #f7ff3b, #3bff6e, #3bc8ff, #8a3bff, #ff3bd5);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
