/* ===========================
   bungle — style.css (harsher pass)
   =========================== */

/* ---- Root + tokens ---- */
:root {
  --bg: #0b0c10;
  --fg: #cfcfcf;
  --muted: #8b8b8b;
  --accent: #00ff9c;
  --accent-soft: rgba(0,255,156,.08);
  --line: rgba(0,255,156,.28);
  --danger: #f04a00;

  --font-mono: ui-monospace, "IBM Plex Mono", Menlo, Consolas, monospace;

  --wrap: 920px;         /* tighter line length */
  --radius: 6px;         /* less friendly, more terminal */
  --pad: 1rem;
}

/* ---- Base ---- */
html, body { height: 100%; }
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CRT scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,.32) 0px,
    rgba(0,0,0,.32) 2px,
    transparent 3px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 0;
}
/* CRT glass vignette */
body::after {
  content: "";
  position: fixed;
  inset: -20px; /* slight overscan */
  background:
    radial-gradient(1200px 600px at 50% 45%,
      rgba(0,0,0,0) 60%,
      rgba(0,0,0,.12) 75%,
      rgba(0,0,0,.28) 100%);
  pointer-events: none;
  z-index: 0;
}
/* Optional toggle to disable scanlines */
.no-crt::before, .no-crt::after { display: none; }

/* Selection */
::selection { background: rgba(0,255,156,.25); color: var(--fg); }

/* Layout helpers */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---- Headings / text ---- */
h1, h2, h3 { color: var(--accent); margin: 0 0 .6rem 0; text-transform: lowercase; letter-spacing: .2px; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(18px, 2.6vw, 22px); }
h3 { font-size: clamp(16px, 2.2vw, 18px); }

p, li { color: var(--fg); }
.strap { color: var(--muted); font-style: italic; }

/* Subtle glow */
h1, h2, h3, .accent { text-shadow: 0 0 6px rgba(0,255,156,.35); }

/* Links */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline dotted; text-underline-offset: 2px; }

/* Focus states */
a:focus-visible,
button:focus-visible,
.cta:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---- Header ---- */
.site-header {
  text-align: center;
  padding: 2.2rem 1rem 1.2rem;
  position: relative;
  z-index: 2;
}
.site-header p { margin: .3rem 0 1rem; color: var(--muted); }

.site-header nav {
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Buttons / CTAs ---- */
.cta, .site-header nav a, .site-header nav button, button {
  --bd: var(--line);
  display: inline-flex;
  align-items: center;
  gap: .5ch;
  padding: .4rem .7rem;
  border: 1px solid var(--bd);
  background: rgba(255,255,255,.01);
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  transition: transform .08s ease, background-color .12s ease, border-color .12s ease;
  letter-spacing: .2px;
}
.cta:hover, .site-header nav a:hover, .site-header nav button:hover, button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.cta:active, button:active { transform: translateY(0); }
.cta.disabled, [aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* WhatsApp mask (number reveal) */
#wa[data-who]::after {
  content: " (" attr(data-who) ")";
  filter: blur(3px);
  opacity: .75;
}
#wa:not([data-who])::after { filter: none; opacity: 1; }

/* ---- Section blocks ---- */
section {
  position: relative;
  z-index: 1;
  margin: 1rem auto;
}
section > .wrap,
section.manifesto > .wrap,
.metrics, .offerings, .rates, .antifaq, .graveyard, .roadmap, .ideas, .testimonials {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  border-radius: var(--radius);
  padding: var(--pad);
  max-width: var(--wrap);
  margin: 0 auto 1rem;
  box-shadow: inset 0 1px 0 rgba(0,255,156,.08);
}
/* Section titles get a faux prompt caret */
section h2::before {
  content: "> ";
  color: var(--muted);
}

/* ---- Manifesto (Swiper) ---- */
.manifesto .swiper { width: 100%; }
.manifesto .swiper-wrapper { padding: .2rem 0; }
.manifesto .swiper-slide {
  text-align: center;
  font-style: italic;
  padding: .35rem 1rem;
}
.swiper-pagination-bullet {
  background: var(--muted);
  opacity: .7;
}
.swiper-pagination-bullet-active { background: var(--accent); opacity: 1; }

/* ---- Metrics grid ---- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
}
.metrics article {
  border: 1px solid var(--line);
  background: var(--accent-soft);
  padding: .7rem;
  text-align: center;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.metrics article .label { color: var(--muted); font-size: .92rem; }
.metrics article .num { display: block; font-size: 1.05rem; letter-spacing: .3px; }

@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .metrics { grid-template-columns: 1fr; }
}

/* ---- Offerings list ---- */
.offerings ul { list-style: none; padding: 0; margin: 0; }
.offerings li { margin: .35rem 0; }
.offerings strong { color: var(--accent); }

/* ---- Rates ---- */
.rates { text-align: center; }
#price {
  display: inline-block;
  font-size: clamp(28px, 6vw, 42px);
  color: var(--danger);
  letter-spacing: .06em;
  text-shadow:
    0 0 8px rgba(240,74,0,.55),
    0 0 14px rgba(240,74,0,.35);
  filter: saturate(1.2);
}
.rates small { color: var(--muted); margin-left: .2rem; }
.rates .note { color: var(--muted); font-size: .85rem; margin-top: .3rem; }

/* ---- Anti-FAQ ---- */
.antifaq details { margin: .35rem 0; }
.antifaq summary {
  cursor: pointer;
  list-style: none;
  color: var(--fg);
}
.antifaq summary::marker { content: ""; }
.antifaq details[open] summary { color: var(--accent); }
.antifaq p { color: var(--muted); margin: .2rem 0 .6rem; }

/* ---- Graveyard ---- */
.graveyard ul { list-style: none; padding: 0; margin: 0; }
.graveyard li { margin: .3rem 0; color: var(--muted); }
.graveyard s { color: #6b6b6b; text-decoration-thickness: 2px; text-decoration-style: dotted; text-decoration-color: #4f4f4f; }

/* ---- Roadmap ---- */
.roadmap ul { list-style: none; padding: 0; margin: 0; }
.roadmap li { margin: .25rem 0; }
.roadmap time { color: var(--accent); margin-right: .5ch; }

/* ---- Ideas ---- */
.ideas { text-align: center; }
#ideaOut { margin-top: .7rem; color: var(--muted); font-style: italic; }

/* ---- Testimonials ---- */
.testimonials blockquote {
  margin: .8rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--fg);
}
.testimonials cite { display: block; color: var(--muted); margin-top: .25rem; }

/* ---- Footer ticker ---- */
footer.ticker {
  border-top: 1px solid var(--line);
  background: #000;
  color: var(--muted);
  text-align: center;
  font-size: .85rem;
  padding: .8rem 1rem;
}
footer.ticker .sep { opacity: .4; padding: 0 .5ch; }

/* ---- Help overlay ---- */
#help {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(2px);
  color: var(--fg);
  padding: 2rem 1rem;
}
#help.active { display: block; }
#help h3 { margin: 0 0 .4rem; }
#help ul { margin: .5rem 0 1rem 1rem; }
#help .cta { margin-top: .4rem; }

/* ---- Shell overlay ---- */
#shell {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1000px, 96vw);
  max-height: 50vh;
  display: none;
  z-index: 60;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.93);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.6);
}
#shell.active { display: block; }
#shell pre {
  margin: 0;
  padding: .8rem;
  max-height: 36vh;
  overflow: auto;
  color: var(--fg);
}
#prompt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .6rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: .6rem .8rem .8rem;
}
#prompt span { color: var(--accent); position: relative; }
#prompt span::after {
  content: "▌";
  position: absolute; right: -12px;
  animation: blink 1s steps(2,end) infinite;
  opacity: .9;
}
@keyframes blink { 50% { opacity: 0; } }
#cmd {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: .45rem .6rem;
  border-radius: 6px;
}
#cmd:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,255,156,.15); }

/* ---- Glitch logo (CSS-only) ---- */
.site-header h1 {
  position: relative;
  color: var(--accent);
  text-shadow: 0 0 6px rgba(0,255,156,.45);
  animation: glitch-flicker 2.2s infinite;
}
.site-header h1::before,
.site-header h1::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  mix-blend-mode: screen;
}
.site-header h1::before {
  color: #ff004c;
  clip-path: inset(0 0 65% 0);
  transform: translate(-1px, -1px);
  animation: glitch-slice-1 3s infinite linear;
}
.site-header h1::after {
  color: #00f0ff;
  clip-path: inset(35% 0 0 0);
  transform: translate(1px, 1px);
  animation: glitch-slice-2 2.6s infinite linear;
}

@keyframes glitch-flicker {
  0%, 96%, 100% { opacity: 1; }
  93% { opacity: .65; }
  95% { opacity: .85; }
}
@keyframes glitch-slice-1 {
  0%, 100% { transform: translate(0,0); }
  10% { transform: translate(-2px,-1px); }
  20% { transform: translate(1px,1px); }
  30% { transform: translate(-1px,1px); }
}
@keyframes glitch-slice-2 {
  0%, 100% { transform: translate(0,0); }
  12% { transform: translate(2px,-1px); }
  22% { transform: translate(-1px,2px); }
  32% { transform: translate(1px,-2px); }
}

/* ---- Themes ---- */
.theme-grim { /* default */ }
.theme-lite {
  --bg: #0f1014;
  --fg: #f0f0f0;
  --muted: #b6b6b6;
  --line: rgba(0,255,156,.35);
  --accent-soft: rgba(0,255,156,.10);
}
.theme-mono {
  --accent: #cfcfcf;
  --line: rgba(255,255,255,.25);
  --accent-soft: rgba(255,255,255,.06);
}

/* Doom (inversion gag) */
body.doom {
  filter: invert(1) hue-rotate(180deg) contrast(1.05);
}

/* ---- Small tweaks ---- */
.t-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.t-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  padding: .8rem;
}
.t-card footer {
  display: flex; gap: .6rem; align-items: center; color: var(--muted);
}
.t-badge {
  border: 1px solid var(--line);
  padding: .1rem .4rem;
  border-radius: 999px;
  color: var(--accent);
}
.stars { letter-spacing: .08rem; color: var(--muted); }

@media (max-width: 780px) {
  .t-grid { grid-template-columns: 1fr; }
}

/* ---- A11y: reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ===========================
   bungle — retro-slider.css
   teletext/ceefax vibes
   =========================== */

.retro {
  position: relative;
  z-index: 2;
  margin: 1.6rem auto;
  max-width: var(--wrap, 1000px);
}

.retro .wrap {
  border: 1px solid var(--line, rgba(0,255,156,.28));
  background: rgba(255,255,255,.02);
  border-radius: var(--radius, 10px);
  padding: var(--pad, 1.2rem);
  text-align: center;
}

/* Canvas stage */
.retro-stage {
  display: block;
  margin: 0 auto 1rem;
  background: #000;
  image-rendering: pixelated;
  border: 2px solid var(--accent, #00ff9c);
  box-shadow: 0 0 18px rgba(0,255,156,.35), inset 0 0 6px rgba(0,255,156,.25);
}

/* UI below the canvas */
.retro-ui {
  font-size: .85rem;
  color: var(--muted, #7b7b7b);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.retro-ui .controls {
  display: flex;
  gap: .6rem;
}

.retro-ui button {
  --bd: var(--line, rgba(0,255,156,.28));
  border: 1px solid var(--bd);
  background: transparent;
  color: var(--accent, #00ff9c);
  padding: .3rem .7rem;
  font-size: .85rem;
  cursor: pointer;
  border-radius: 6px;
  transition: transform .08s ease, background-color .12s ease, border-color .12s ease;
}

.retro-ui button:hover {
  background: var(--accent-soft, rgba(0,255,156,.08));
  border-color: var(--accent, #00ff9c);
  transform: translateY(-1px);
}

.retro-ui button:active {
  transform: translateY(0);
}

.retro-ui #retro-status {
  font-style: italic;
  color: var(--muted, #7b7b7b);
}

/* Responsive */
@media (max-width: 520px) {
  .retro-stage {
    width: 100%;
    height: auto;
  }
  .retro-ui {
    font-size: .75rem;
  }
}
/* keep it crunchy and centred */
#retro-canvas { image-rendering: pixelated; width:100%; max-width:640px; display:block; margin:0 auto; background:#000; }
.manifesto { display: none; }
