/* 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;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  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: 70px; max-width: none;
  padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--hot); cursor: pointer;
  user-select: none; -webkit-user-select: none; }
.brand img { width: 46px; height: 36px; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;
  image-rendering: pixelated; }
.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: 40px 0 120px; min-height: calc(100vh - 70px); min-height: calc(100svh - 70px);
  display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; 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%); }
/* The fire is a fixed background behind the whole site (all pages). Bright behind the hero, dimmer behind text. */
#fire { position: fixed; left: 0; right: 0; top: 0; bottom: auto; width: 100%;
  height: 100vh; height: 100lvh;   /* the LARGE viewport: reaches the real bottom of the screen, under Safari's bars */
  z-index: 0; pointer-events: none; opacity: 1;
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
  mask-image: linear-gradient(to top, #000 55%, transparent);
  transform: translateZ(0); -webkit-transform: translateZ(0); }
/* phones: the first screen fills the whole screen (under Safari's bar too), so "What it does" waits below */
html.touch-fire .hero { min-height: calc(100vh - 30px); min-height: calc(100lvh - 30px); }
/* phones: the fire lives in the page (see site.js) so iPhone draws it right down under Safari's floating bar */
html.touch-fire body { position: relative; }
#fire-wrap { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; pointer-events: none; }
@keyframes fire-follow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, var(--fire-max, 0px), 0); } }
html.fire-sda #fire { animation: fire-follow linear both; animation-timeline: scroll(root block); }
html.touch-fire #fire { position: absolute; top: 0; will-change: transform;
  -webkit-mask-image: linear-gradient(to top, #000 65%, transparent); mask-image: linear-gradient(to top, #000 65%, transparent); }
/* everything else sits above the fire */
nav { z-index: 20; }
header, section, footer, .page { position: relative; z-index: 1; }
/* text over the flames stays readable */
section p, section li, .page p, .page li, footer, details summary { text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.hero .icon { width: 185px; height: 145px; margin: 0 auto 34px; image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges; image-rendering: pixelated; display: block; cursor: pointer; position: relative; z-index: 2;
  transition: transform .15s ease; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hero .icon:hover { transform: scale(1.04); }
.hero h1 { font-family: Press, monospace; font-weight: normal; font-size: 84px; line-height: 1.1; padding-left: .5em;
  text-shadow: 7px 7px 0 var(--deep); position: relative; z-index: 2; }
.hero h1 b { color: var(--orange); font-weight: normal; }
.hero .tag { text-shadow: 0 2px 6px #000, 0 0 16px #000; 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 { text-shadow: 0 1px 4px #000, 0 0 12px #000; margin-top: 24px; color: var(--text2) !important; font-size: 15px; color: var(--text3); position: relative; z-index: 2; }
.hint { text-shadow: 0 1px 4px #000, 0 0 10px #000; 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; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(4px 4px 0 var(--deep)); }
.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 { padding: 60px 0 calc(26px + env(safe-area-inset-bottom)); 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; }
footer a, footer span { color: var(--hot); text-shadow: 0 0 2px #000, 0 0 4px #000, 0 0 8px #000, 0 0 14px #000, 0 0 22px rgba(0,0,0,.9); }
footer .brand img { filter: drop-shadow(0 0 6px #000) drop-shadow(0 0 12px rgba(0,0,0,.9)); }

/* 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: 30px 0 90px; }
  .hero h1 { font-size: 52px; }
  .hero .icon { width: 148px; height: 116px; }
  .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; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero .tag { margin: 20px 0 30px; }
}

/* 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; }

.hero .hint { color: var(--text2); }

/* COMING SOON mode: <html class="soon"> (default) - nothing can be bought or downloaded yet.
   To launch: set "coming_soon": false in release.json (site.js then removes the class and wires the buttons). */
.btn .when-soon { display: none; }
html.soon .btn .when-live { display: none; }
html.soon .btn .when-soon { display: inline; }
html.soon [data-buy], html.soon [data-dl] { pointer-events: none; cursor: default; filter: grayscale(1) brightness(.75);
  box-shadow: inset 0 0 0 2px #5a5550; }
html.soon .cta [data-dl] { display: none; }
html.soon .live-only { display: none; }
.soon-only { display: none; }
html.soon .soon-only { display: block; }
