/* =========================================================
   StoepWorks Development – stoepworks.co.za
   Palette taken from the banner.
   ========================================================= */
:root {
  --bg: #050b1a;
  --bg-2: #08132b;
  --surface: rgba(16, 32, 68, 0.55);
  --border: rgba(120, 170, 255, 0.14);
  --border-strong: rgba(120, 190, 255, 0.32);

  --text: #eef3ff;
  --muted: #98a8c8;
  --faint: #5f7097;

  --blue: #1e7bff;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --lime-2: #7ed321;

  --grad: linear-gradient(90deg, var(--blue), var(--cyan) 50%, var(--lime));
  --grad-diag: linear-gradient(135deg, var(--blue), var(--cyan) 45%, var(--lime));

  --radius: 20px;
  --wrap: 1160px;
  --display: "Exo 2", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.v {
  background: linear-gradient(160deg, #d9ff6b, var(--lime) 40%, var(--lime-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--lime); color: #04101f; padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; translate: -50% 20px; opacity: 0;
  padding: 12px 20px; border-radius: 999px; font: 600 .92rem/1.2 var(--body); white-space: nowrap; max-width: calc(100% - 32px);
  background: rgba(10, 22, 48, .92); border: 1px solid var(--border-strong); color: var(--text);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8), 0 0 30px -8px rgba(34, 211, 238, .5);
  transition: opacity .3s ease, translate .3s ease; pointer-events: none;
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font: 600 .95rem/1 var(--body);
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--grad-diag); color: #04101f; box-shadow: 0 8px 30px -8px rgba(34, 211, 238, .55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(163, 230, 53, .55); }
.btn--ghost { border-color: var(--border-strong); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .08); transform: translateY(-2px); }
.btn--big { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease; }
.nav.is-scrolled { background: rgba(5, 11, 26, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__name { font: italic 900 1.45rem/1 var(--display); letter-spacing: -.01em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { white-space: nowrap; color: var(--muted); font-weight: 500; font-size: .95rem; position: relative; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 120px; overflow: hidden; isolation: isolate; }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow--blue { width: 620px; height: 620px; left: -160px; top: -120px; background: radial-gradient(circle, #0b4dff 0%, transparent 65%); }
.glow--lime { width: 560px; height: 560px; right: -160px; top: 40px; background: radial-gradient(circle, #5fbf1a 0%, transparent 65%); opacity: .4; }

.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--muted); border: 1px solid var(--border); background: rgba(5, 11, 26, .5); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(163,230,53,.6); } 70% { box-shadow: 0 0 0 10px rgba(163,230,53,0); } 100% { box-shadow: 0 0 0 0 rgba(163,230,53,0); } }

.hero__title { margin-top: 22px; font: italic 900 clamp(3rem, 8.4vw, 6.4rem)/.92 var(--display); letter-spacing: -.035em; text-shadow: 0 6px 40px rgba(30, 123, 255, .25); }
.hero__title .v { padding-right: .1em; margin-right: -.1em; filter: drop-shadow(0 0 24px rgba(163, 230, 53, .35)); }
.hero__role { display: flex; align-items: center; gap: 16px; margin-top: 14px; white-space: nowrap; font: italic 600 clamp(1.25rem, 2.6vw, 1.8rem)/1 var(--display); letter-spacing: .06em; color: #dfe7f7; }
.line { flex: 0 1 70px; height: 3px; border-radius: 3px; }
.line--blue { background: linear-gradient(90deg, transparent, var(--blue)); }
.line--lime { background: linear-gradient(90deg, var(--lime), transparent); }
.hero__lead { margin-top: 26px; max-width: 34rem; color: var(--muted); font-size: 1.1rem; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.motto { display: flex; gap: 18px; margin-top: 38px; font: 600 .82rem/1 var(--body); letter-spacing: .32em; text-transform: uppercase; color: #c9d4ea; }
.motto li { display: flex; align-items: center; gap: 18px; }
.motto li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

.hero__art { position: relative; aspect-ratio: 1; width: min(100%, 460px); justify-self: center; }
.hero__halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .35), rgba(30, 123, 255, .15) 45%, transparent 70%); filter: blur(20px); animation: breathe 6s ease-in-out infinite; }
.hero__logo-btn { position: relative; display: block; width: 100%; border-radius: 50%; animation: float 7s ease-in-out infinite; }
.hero__logo { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.hero__logo-btn:hover .hero__logo { transform: scale(1.04) rotate(-3deg); }
.hero__logo-btn.is-spun .hero__logo { transform: rotate(360deg); transition-duration: .9s; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(120, 190, 255, .22); pointer-events: none; }
.orbit--1 { inset: -6%; animation: spin 40s linear infinite; }
.orbit--2 { inset: -16%; border-style: solid; border-color: rgba(163, 230, 53, .1); animation: spin 70s linear infinite reverse; }
.orbit::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; top: 50%; left: -5px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.orbit--2::after { background: var(--lime); box-shadow: 0 0 14px var(--lime); top: 20%; left: 9%; }
.chip { position: absolute; padding: 8px 14px; border-radius: 12px; font: 600 .85rem/1 var(--body); background: rgba(10, 22, 48, .8); border: 1px solid var(--border-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); animation: float 6s ease-in-out infinite; pointer-events: none; }
.chip--code { top: 8%; right: 2%; color: var(--cyan); font-family: var(--mono); animation-delay: -1s; }
.chip--droid { bottom: 14%; right: -4%; color: var(--lime); animation-delay: -3s; }
.chip--api { bottom: 6%; left: 4%; color: #8ab8ff; animation-delay: -4.5s; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; z-index: -1; filter: drop-shadow(0 0 12px rgba(34, 211, 238, .5)); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: -20px; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--border); border: 1px solid var(--border); }
.stat { background: var(--bg-2); padding: 26px 20px; text-align: center; }
.stat b { display: block; font: italic 900 2.4rem/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 90px 0 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(12, 26, 56, .6) 20%, rgba(12, 26, 56, .6) 80%, transparent); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.kicker { display: inline-block; font: 600 .8rem/1 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.section h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
.section__sub { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

/* ---------- Banner billboard (tilts with the mouse) ---------- */
.billboard { perspective: 1400px; }
.billboard__card {
  position: relative; border-radius: 24px; overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .25s ease-out;
  border: 1px solid var(--border-strong);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(30, 123, 255, .45), 0 0 120px -40px rgba(163, 230, 53, .35);
}
.billboard__card img { width: 100%; height: auto; }
.billboard__shine {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--shine, 0); transition: opacity .3s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 45%);
}

/* ---------- Terminal ---------- */
.term {
  max-width: 820px; margin-inline: auto; border-radius: 18px; overflow: hidden;
  background: rgba(4, 9, 22, .92); border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(34, 211, 238, .35);
  font-family: var(--mono); font-size: .92rem;
}
.term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(120, 170, 255, .07); border-bottom: 1px solid var(--border); }
.term__bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; }
.term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: 10px; color: var(--faint); font-size: .8rem; }
.term__out { height: 300px; overflow-y: auto; padding: 16px 18px 6px; line-height: 1.6; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.term__out div { white-space: pre-wrap; word-break: break-word; }
.t-cmd { color: var(--text); }
.t-cmd::before { content: "visitor@stoepworks:~$ "; color: var(--lime); }
.t-out { color: #b9c7e3; }
.t-ok { color: var(--lime); }
.t-warn { color: #ffb86b; }
.t-err { color: #ff7b7b; }
.t-art { color: var(--lime); line-height: 1.15; }
.t-out a { color: var(--cyan); text-decoration: underline; }
.term__form { display: flex; align-items: center; gap: 10px; padding: 8px 18px 14px; }
.term__prompt { color: var(--lime); white-space: nowrap; }
.term__in { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; caret-color: var(--lime); }
.term__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 16px; border-top: 1px solid var(--border); background: rgba(120, 170, 255, .04); }
.term__chips button { padding: 6px 12px; border-radius: 8px; font-size: .82rem; color: var(--cyan); border: 1px solid rgba(34, 211, 238, .28); background: rgba(34, 211, 238, .07); transition: background .2s, transform .2s; }
.term__chips button:hover { background: rgba(34, 211, 238, .18); transform: translateY(-1px); }

/* ---------- Vault ---------- */
.vault { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.file {
  position: relative; display: flex; flex-direction: column; gap: 14px; text-align: left;
  min-height: 210px; padding: 44px 26px 26px; border-radius: 6px 18px 18px 18px;
  background: linear-gradient(160deg, rgba(20, 40, 84, .7), rgba(9, 20, 46, .8));
  border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.file:hover, .file:focus-visible { transform: translateY(-6px) rotate(-.6deg); border-color: var(--border-strong); box-shadow: 0 30px 60px -30px rgba(30, 123, 255, .6); }
.file__tab { position: absolute; top: 0; left: 0; padding: 5px 14px; border-radius: 6px 0 12px 0; font: 600 .7rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #04101f; background: var(--grad-diag); }
.file__name { font: italic 800 1.5rem/1.15 var(--display); }
.file__code { font-family: var(--mono); font-style: normal; font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; color: var(--cyan); }
.file__lines { display: grid; gap: 9px; }
.file__lines i { height: 10px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(152, 168, 200, .32) 0 46px, transparent 46px 54px); }
.file__lines i:nth-child(2) { width: 82%; }
.file__lines i:nth-child(3) { width: 55%; }
.file__stamp {
  position: absolute; right: 18px; bottom: 20px; padding: 5px 10px; rotate: -8deg;
  font: 700 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: #ff8a8a; border: 2px solid currentColor; border-radius: 6px; opacity: .85;
}
.file__stamp--lime { color: var(--lime); }
.file__lock { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(10, 22, 48, .8); border: 1px solid var(--border-strong); }
.file__lock svg { width: 17px; height: 17px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.file.is-denied { animation: shake .45s ease; border-color: rgba(255, 123, 123, .6); }
.file.is-denied .file__lock svg { stroke: #ff7b7b; }
@keyframes shake { 20% { transform: translateX(-8px) rotate(-1deg); } 40% { transform: translateX(7px) rotate(1deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.file--next { background: transparent; border: 2px dashed var(--border-strong); }
.file--next .file__lock svg { stroke: var(--cyan); }
.vault__note { margin-top: 34px; text-align: center; color: var(--faint); font-size: .95rem; }

/* ---------- The loop ---------- */
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.loop::before { content: ""; position: absolute; left: 8%; right: 8%; top: 58px; height: 2px; background: var(--grad); opacity: .35; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .3s ease, border-color .3s ease; }
.step:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.step__num { position: absolute; top: 20px; right: 24px; font: italic 900 2.6rem/1 var(--display); color: rgba(120, 170, 255, .14); }
.step__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; background: linear-gradient(135deg, rgba(30, 123, 255, .3), rgba(163, 230, 53, .2)), var(--bg-2); border: 1px solid var(--border-strong); }
.step__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step:nth-child(1) .step__icon svg { stroke: #7cc0ff; }
.step:nth-child(2) .step__icon svg { stroke: var(--cyan); }
.step h3 { font: italic 800 1.6rem/1.1 var(--display); margin-bottom: 10px; }
.step p { color: var(--muted); }

/* ---------- Ideas ---------- */
.contact { position: relative; overflow: hidden; text-align: center; padding: 80px 32px; border-radius: 28px; background: linear-gradient(135deg, rgba(30, 123, 255, .16), rgba(8, 19, 43, .9) 45%, rgba(163, 230, 53, .12)); border: 1px solid var(--border-strong); }
.contact__glow { position: absolute; inset: 35% -10% -45% -10%; background: radial-gradient(ellipse at center, rgba(34, 211, 238, .2), transparent 65%); pointer-events: none; }
.contact > :not(.contact__glow) { position: relative; }
.contact .section__sub { max-width: 32rem; margin: 14px auto 34px; }
.contact__mail { margin-top: 18px; color: var(--faint); font-size: .9rem; }
.contact__mail a { color: var(--muted); border-bottom: 1px solid var(--border-strong); }
.contact__mail a:hover { color: var(--text); border-color: var(--cyan); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 34px 0 26px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand__name { font-size: 1.2rem; }
.footer__motto { display: flex; align-items: center; gap: 12px; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.footer__motto i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.footer__copy { color: var(--faint); font-size: .88rem; }
.footer__hint { margin-top: 22px; text-align: center; font: 400 .74rem/1 var(--mono); letter-spacing: .2em; color: rgba(95, 112, 151, .55); }

/* Party mode (Konami code, `party` in the terminal, or 5 spins of the logo) */
body.party .hero__title .v, body.party .stat b { animation: hue 2s linear infinite; }
body.party .orbit--1 { animation-duration: 4s; }
body.party .orbit--2 { animation-duration: 6s; }
@keyframes hue { to { filter: hue-rotate(360deg); } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .file.reveal.is-visible { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, opacity .7s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 110px 0 100px; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__text { display: flex; flex-direction: column; align-items: center; }
  .hero__role, .hero__cta, .motto { justify-content: center; }
  .hero__art { width: min(78%, 360px); order: -1; margin-top: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .vault { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: .86rem; }
  .nav__links a[href="#loop"] { display: none; }
  .section { padding: 80px 0; }
  .section--tight { padding: 60px 0 0; }
  .vault, .loop { grid-template-columns: 1fr; }
  .loop::before { display: none; }
  .billboard__card { border-radius: 14px; }
  .motto { gap: 12px; letter-spacing: .22em; font-size: .74rem; }
  .motto li { gap: 12px; }
  .line { flex-basis: 36px; }
  .stat b { font-size: 2rem; }
  .term { font-size: .82rem; }
  .term__out { height: 260px; padding-inline: 14px; }
  .term__form { padding-inline: 14px; }
  .term__in { font-size: 16px; }   /* stops iOS zooming in on focus */
  .t-cmd::before { content: "$ "; }
  .term__prompt { font-size: 0; }
  .term__prompt::after { content: "$"; font-size: .82rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__hint { display: none; }
  .toast { white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Store: app grid (home, category pages), app pages, guide
   ========================================================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

.store__bar { display: grid; gap: 18px; margin-bottom: 30px; }
.search { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 58px; border-radius: 999px; background: rgba(8, 19, 43, .8); border: 1px solid var(--border-strong); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .12), 0 0 40px -10px rgba(34, 211, 238, .5); }
.search svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 1rem/1 var(--body); }
.search input::placeholder { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips button, .chips a { padding: 9px 16px; border-radius: 999px; font: 500 .88rem/1 var(--body); color: var(--muted); border: 1px solid var(--border); background: rgba(255, 255, 255, .02); transition: color .2s, border-color .2s, background .2s; }
.chips button:hover, .chips a:hover { color: var(--text); border-color: var(--cyan); }
.chips button.is-on { color: #04101f; background: var(--grad-diag); border-color: transparent; font-weight: 600; }
.chips--links { margin-top: 34px; }
.store__empty { text-align: center; color: var(--muted); padding: 30px 0; }

.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.app::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); opacity: 0; transition: opacity .2s; }
.app:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 18px 40px -22px rgba(34, 211, 238, .6); }
.app:hover::before { opacity: 1; }
.app__icon { width: 64px; height: 64px; flex: none; border-radius: 15px; background: rgba(255, 255, 255, .04); }
.app__body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.app__name { font: 700 1.08rem/1.2 var(--display); }
.app__tag { color: var(--muted); font-size: .86rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app__meta { color: var(--faint); font: 400 .72rem/1 var(--mono); margin-top: 2px; }
.app__get { flex: none; padding: 8px 14px; border-radius: 999px; font: 600 .8rem/1 var(--body); color: var(--lime); border: 1px solid rgba(163, 230, 53, .4); transition: background .2s, color .2s; }
.app:hover .app__get { background: var(--lime); color: #04101f; }

.footer__note { margin-top: 22px; text-align: center; color: var(--faint); font-size: .78rem; line-height: 1.6; max-width: 760px; }
.footer__note a { color: var(--muted); border-bottom: 1px solid var(--border-strong); }

/* ---------- sub-pages ---------- */
body.sub { background: radial-gradient(900px 500px at 0% -10%, rgba(11, 77, 255, .28), transparent 70%), radial-gradient(800px 500px at 100% 0%, rgba(95, 191, 26, .16), transparent 70%), var(--bg); background-repeat: no-repeat; }
.sub__main { padding: 104px 0 90px; }
.sub .reveal { opacity: 1; transform: none; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .86rem; color: var(--faint); margin-bottom: 30px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); }
.crumbs i { font-style: normal; opacity: .6; }
.sub__head { text-align: center; max-width: 700px; margin: 10px auto 46px; }
.sub__head h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }

.detail__head { display: flex; align-items: center; gap: 26px; }
.detail__icon { width: 112px; height: 112px; flex: none; border-radius: 26px; box-shadow: 0 20px 50px -18px rgba(34, 211, 238, .55); }
.detail__head h1 { font: italic 900 clamp(2.2rem, 6vw, 3.8rem)/1 var(--display); letter-spacing: -.02em; }
.detail__tag { margin-top: 10px; color: var(--muted); font-size: 1.12rem; }
.detail__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.detail__chips span { padding: 6px 12px; border-radius: 999px; font: 500 .78rem/1 var(--body); color: var(--muted); border: 1px solid var(--border); }
.detail__chips span:first-child { color: var(--lime); border-color: rgba(163, 230, 53, .4); }
.detail__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 34px 0 46px; }
.detail__cta .btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.detail__cta .btn small { font: 500 .8rem/1 var(--mono); opacity: .75; margin-left: 4px; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }

.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 38px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #c3cee6; margin-top: 12px; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(34, 211, 238, .35); }
.prose strong { color: var(--text); }
.prose--wide { max-width: 780px; margin-inline: auto; }
.ticks { margin-top: 16px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: #c3cee6; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border: solid var(--lime); border-width: 0 0 2px 2px; rotate: -45deg; }
.steps { counter-reset: s; display: grid; gap: 12px; margin-top: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; color: #c3cee6; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font: 700 .85rem/1 var(--display); color: #04101f; background: var(--grad-diag); }

.facts { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: sticky; top: 92px; }
.facts h2 { font-size: 1.15rem; margin-bottom: 14px; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; font-size: .9rem; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.mono { font-family: var(--mono); font-size: .78rem; }
.facts .hash { grid-column: 1 / -1; text-align: left; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: rgba(5, 11, 26, .6); border: 1px solid var(--border); user-select: all; }
.facts__links { margin-top: 16px; font-size: .86rem; color: var(--faint); }
.facts__links a { color: var(--cyan); }
.facts__links { line-height: 2; }
.facts dd a { border-bottom: 1px solid var(--border-strong); }

.more { margin-top: 70px; }
.more h2 { font-size: 1.6rem; margin-bottom: 20px; }

.bigsteps { counter-reset: b; display: grid; gap: 16px; }
.bigsteps li { counter-increment: b; position: relative; padding: 22px 24px 22px 84px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.bigsteps li::before { content: counter(b); position: absolute; left: 22px; top: 22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font: italic 900 1.3rem/1 var(--display); color: #04101f; background: var(--grad-diag); }
.bigsteps h2 { font-size: 1.2rem; margin: 0; }
.bigsteps p { margin-top: 6px; }
.faq { display: grid; gap: 10px; margin-top: 16px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--lime); font: 600 1.2rem/1 var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 18px; }
.prose .detail__cta { justify-content: center; margin-bottom: 0; }
.prose .detail__cta a { border: 0; color: #04101f; }

@media (max-width: 960px) {
  .apps { grid-template-columns: repeat(2, 1fr); }
  .detail__grid { grid-template-columns: 1fr; }
  .facts { position: static; }
}
@media (max-width: 680px) {
  .apps { grid-template-columns: 1fr; }
  .nav__links a[href$="#apps"], .nav__links a[href="/how-to-install-apk/"], .nav__links a[href="/sealreveal/"] { display: none; }
  .sub__main { padding-top: 92px; }
  .detail__head { gap: 18px; }
  .detail__icon { width: 84px; height: 84px; border-radius: 20px; }
  .detail__cta .btn { width: 100%; }
  .chips { gap: 8px; }
  .chips button, .chips a { padding: 8px 13px; font-size: .82rem; }
  .bigsteps li { padding: 74px 20px 20px; }
}

/* ---------------------------------------------------------------- shop: Pols and the legal pages */
.legal { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: .84rem; line-height: 1.7; }
.legal__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.legal__links a { color: var(--text); font-weight: 600; }
.legal__links a:hover { color: var(--cyan); }
.legal__who a, .legal__merchant a { color: var(--muted); border-bottom: 1px solid var(--border-strong); }
.legal__merchant { max-width: 760px; margin: 10px auto 0; color: var(--faint); font-size: .78rem; }
mark.todo { background: #fde047; color: #111; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

.product { max-width: 980px; margin-inline: auto; }
.product__head { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin: 10px 0 24px; }
.product__head h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -.02em; }
.product__icon { width: 120px; height: 120px; border-radius: 28px; flex: none; }
.product__facts { margin-top: 10px; color: var(--muted); font: 500 .85rem/1.5 var(--mono, monospace); }
.product__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 30px; }
.carousel { position: relative; margin: 8px 0 10px; }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; border-radius: 26px; outline-offset: 4px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 12px; padding: 6px 0 4px; }
.carousel__slide img { width: auto; height: min(560px, 70vh); max-width: 100%; object-fit: contain;
  border-radius: 24px; border: 1px solid var(--border-strong); background: var(--surface); }
.carousel__slide figcaption { color: var(--muted); font-size: .92rem; text-align: center; max-width: 34ch; }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.carousel__controls[hidden] { display: none; }
.carousel__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 1.15rem; cursor: pointer; }
.carousel__btn:hover { border-color: var(--accent, currentColor); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 60vw; }
.carousel__dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--border-strong); }
.carousel__dot[aria-current="true"] { background: var(--accent, var(--text)); transform: scale(1.25); }
.carousel__count { text-align: center; color: var(--muted); font: 500 .8rem/1.4 var(--mono, monospace); margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }
.plan { margin-top: 40px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.plan h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 14px; }
.plan--pro { border-color: var(--border-strong); box-shadow: 0 0 0 1px rgba(163, 230, 53, .25) inset; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features li { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); }
.features li span { color: var(--muted); font-size: .9rem; }
.price { font: 700 1rem/1 var(--body); color: var(--muted); margin: 0 0 6px; }
.price span { font: italic 900 2.6rem/1 var(--display); color: var(--text); margin-right: 6px; }
.price__note { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.product .small, .prose .small, p.small { color: var(--muted); font-size: .86rem; margin-top: 12px; }
.product .small a, .product .faq a { color: var(--cyan); }
.product section h2 { margin-top: 44px; }
.steps { padding-left: 1.3em; color: #c3cee6; line-height: 1.8; }
.notice { margin: 22px 0; padding: 14px 18px; border-radius: 14px; border: 1px solid #fde04788; background: rgba(253, 224, 71, .08); color: var(--text); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 10px 0 24px; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.facts a { color: var(--cyan); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }

.spot { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 44px; align-items: center; }
.spot__shot { width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--border-strong); box-shadow: 0 30px 80px -30px rgba(34, 211, 238, .45); }
.spot__text h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; }
.spot__price { margin-top: 14px; font-weight: 700; color: var(--lime); }
@media (max-width: 760px) { .spot { grid-template-columns: 1fr; } .spot__shot { max-width: 260px; margin-inline: auto; } }

/* contact form */
.form { display: grid; gap: 16px; margin: 10px 0 26px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form .opt { color: var(--muted); font-weight: 400; font-size: .88rem; }
.form input, .form select, .form textarea { font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.form textarea { resize: vertical; min-height: 140px; }
.form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button { justify-self: start; }
.form button:disabled { opacity: .6; cursor: wait; }
.form__status { min-height: 1.4em; margin: 0; }
.form__status.is-ok { color: var(--lime); }
.form__status.is-bad { color: #fca5a5; }

/* Originals on the home page: released apps, then the dashed "next one" card */
.app--next { background: transparent; border: 2px dashed var(--border-strong); }
.app--next .app__get { color: var(--cyan); }

/* shop: buy form and thank-you page (site/js/shop.js) */
.buy { max-width: 520px; }
.form button.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.keybox { display: grid; gap: 6px; font-weight: 600; margin: 14px 0 10px; }
.keybox__key { font: 500 .9rem/1.5 var(--mono); color: var(--lime); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 12px 14px; width: 100%; resize: none; word-break: break-all; }
.keybox__key:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.keybox__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0; }
#thanks h2:focus, #thanks h2:focus-visible { outline: none; }
#thanks code, #failed code { font-family: var(--mono); color: var(--cyan); }
.prose .keybox__actions a.btn--primary { border: 0; color: #04101f; }
#thanks a.btn--ghost { color: var(--text); border: 1px solid var(--border-strong); }
/* A ghost button inside page text keeps the button's own colours, not the text link colour. */
.prose a.btn--ghost { color: var(--text); border: 1px solid var(--border-strong); }
