/* =====================================================================
   SUDO Streaming — premium dark storefront
   Mobile-first, system font stack, zero external dependencies.
   ===================================================================== */

:root{
  --bg:#08080d;
  --bg-2:#0e0e16;
  --card:#13131d;
  --card-2:#181824;
  --line:rgba(255,255,255,.08);
  --text:#f4f4f8;
  --muted:#a7a7b8;
  --accent:#22d3ee;
  --accent-2:#8b5cf6;
  --grad:linear-gradient(120deg,var(--accent),var(--accent-2));
  --radius:18px;
  --maxw:1240px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:
    radial-gradient(900px 480px at 85% -80px, rgba(139,92,246,.20), transparent 60%),
    radial-gradient(800px 420px at -10% 240px, rgba(34,211,238,.12), transparent 60%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
  min-height:100vh;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 20px; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(8,8,13,.82);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.header-in{ display:flex; align-items:center; gap:14px; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; font-weight:800; font-size:19px; letter-spacing:-.01em; }
.brand img{ width:30px; height:30px; border-radius:8px; }
.brand .wave{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.site-nav{ margin-left:auto; display:flex; gap:20px; font-size:14.5px; }
.site-nav a{ color:var(--muted); text-decoration:none; white-space:nowrap; }
.site-nav a:hover{ color:var(--text); }
@media (max-width:640px){
  .site-nav{ gap:14px; font-size:13.5px; }
  /* keep the key links reachable on a phone; Library + Gumroad live in the page/footer */
  .site-nav a[href="#library"], .site-nav a[target="_blank"]{ display:none; }
}

/* ---------- Hero ---------- */
.hero{ padding:64px 0 40px; text-align:center; }
.eyebrow{
  display:inline-block; font-size:12.5px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--accent);
  border:1px solid rgba(34,211,238,.35); border-radius:999px; padding:6px 14px;
  background:rgba(34,211,238,.07);
}
.hero h1{
  font-size:clamp(34px,7vw,58px); line-height:1.08; font-weight:900;
  letter-spacing:-.02em; margin:22px auto 16px; max-width:820px;
}
.hero h1 .grad{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p{ color:var(--muted); font-size:clamp(16px,2.6vw,19px); max-width:620px; margin:0 auto 28px; }
.hero-ctas{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.hero-stats{
  display:flex; gap:28px; justify-content:center; flex-wrap:wrap;
  margin-top:38px; color:var(--muted); font-size:14px;
}
.hero-stats strong{ color:var(--text); font-size:17px; display:block; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:15.5px; text-decoration:none; cursor:pointer;
  border-radius:12px; padding:13px 22px; border:1px solid transparent; min-height:46px;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary{ background:var(--grad); color:#0b0b10; }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 28px rgba(34,211,238,.28); }
.btn-ghost{ background:transparent; color:var(--text); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--accent); transform:translateY(-2px); }

/* ---------- Lead magnet ---------- */
.lead{ padding:26px 0 8px; }
.lead-card{
  display:grid; gap:26px; align-items:center;
  background:linear-gradient(var(--card-2),var(--card-2)) padding-box, var(--grad) border-box;
  border:1.5px solid transparent; border-radius:24px; padding:26px;
}
@media (min-width:820px){ .lead-card{ grid-template-columns:300px 1fr; padding:34px; } }
.lead-cover{ border-radius:16px; width:100%; max-width:300px; margin:0 auto; box-shadow:0 18px 44px rgba(0,0,0,.45); }
.lead-copy h2{ font-size:clamp(24px,4.5vw,32px); letter-spacing:-.01em; margin:10px 0 8px; }
.lead-copy p{ color:var(--muted); max-width:520px; }
.lead-form{ display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.lead-form input{
  flex:1 1 240px; background:var(--bg-2); border:1px solid var(--line); color:var(--text);
  border-radius:12px; padding:13px 16px; font-size:15.5px; font-family:inherit;
}
.lead-form input:focus{ outline:2px solid var(--accent); outline-offset:1px; }
.fineprint{ font-size:13px; margin-top:12px; }

/* ---------- Filters ---------- */
.shop{ padding:44px 0 12px; }
.shop h2{ font-size:clamp(24px,5vw,34px); letter-spacing:-.01em; }
.shop .sub{ color:var(--muted); margin-top:6px; }
.chips{ display:flex; gap:10px; flex-wrap:wrap; margin:22px 0 26px; }
.chip{
  font-family:inherit; font-size:14.5px; font-weight:600; cursor:pointer;
  color:var(--muted); background:var(--card); border:1px solid var(--line);
  border-radius:999px; padding:9px 18px; min-height:44px;
  display:inline-flex; align-items:center;
  transition:all .15s ease;
}
.chip:hover{ color:var(--text); border-color:rgba(255,255,255,.25); }
.chip.active{ background:var(--grad); color:#0b0b10; border-color:transparent; }
.count-note{ color:var(--muted); font-size:13.5px; margin:-12px 0 18px; }

/* ---------- Product grid ---------- */
.grid{
  display:grid; gap:20px; grid-template-columns:1fr;
  padding-bottom:56px;
}
@media (min-width:560px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:920px){ .grid{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:1240px){ .grid{ grid-template-columns:repeat(4,1fr); } }

.card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  animation:card-in .35s ease both;
}
.card:hover{ transform:translateY(-4px); border-color:rgba(255,255,255,.2); box-shadow:0 18px 40px rgba(0,0,0,.4); }
@keyframes card-in{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.card[hidden]{ display:none; }

.card-media{ position:relative; aspect-ratio:4/5; background:var(--bg-2); overflow:hidden; }
.card-media img{ width:100%; height:100%; object-fit:cover; object-position:top center; }
.badge{
  position:absolute; top:12px; left:12px;
  background:var(--grad); color:#0b0b10; font-size:12px; font-weight:800;
  padding:5px 11px; border-radius:999px; letter-spacing:.02em;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
}
.card-body{ padding:18px; display:flex; flex-direction:column; gap:9px; flex:1; }
.card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.card h3{ font-size:17.5px; line-height:1.25; letter-spacing:-.01em; }
.price{ font-size:17.5px; font-weight:800; white-space:nowrap; }
.price small{ display:block; font-size:11px; font-weight:600; color:var(--muted); text-align:right; }
.pitch{ color:var(--muted); font-size:14.5px; flex:1; }
.tag{
  align-self:flex-start; font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--accent); background:rgba(34,211,238,.08); border:1px solid rgba(34,211,238,.22);
  padding:4px 10px; border-radius:999px;
}
.buy-btn{ width:100%; margin-top:6px; background:var(--grad); color:#0b0b10; }
.buy-btn:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(139,92,246,.3); }
.buy-btn.via-gumroad{ background:var(--card-2); color:var(--text); border-color:var(--line); }
.buy-btn.via-gumroad:hover{ border-color:var(--accent); box-shadow:none; }
.buy-btn.is-disabled{
  background:var(--card-2); color:var(--muted); border-color:var(--line);
  cursor:not-allowed; pointer-events:none; box-shadow:none; transform:none;
}

/* ---------- Success page ---------- */
.success-box{
  max-width:560px; margin:9vh auto 60px; text-align:center;
  background:var(--card); border:1px solid var(--line); border-radius:24px; padding:40px 30px;
}
.success-box .check{
  width:72px; height:72px; margin:0 auto 20px; border-radius:50%;
  background:var(--grad); display:flex; align-items:center; justify-content:center;
  font-size:34px; color:#0b0b10; font-weight:900;
}
.success-box h1{ font-size:28px; margin-bottom:10px; }
.success-box p{ color:var(--muted); margin-bottom:24px; }
.success-box .btn{ margin:4px; }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--line); padding:34px 0 44px; color:var(--muted); font-size:14px; }
.footer-in{ display:flex; gap:18px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.site-footer a{ color:var(--text); }

/* =====================================================================
   Membership / widgets / library / pricing / FAQ (streamer pivot)
   ===================================================================== */

/* ---------- Section scaffolding ---------- */
.section-head{ text-align:center; max-width:680px; margin:0 auto 30px; }
.section-head h2{ font-size:clamp(26px,5vw,36px); letter-spacing:-.01em; margin-top:14px; }
.section-head p{ color:var(--muted); margin-top:8px; }
.widgets-sec,.library-sec,.pricing-sec,.faq-sec{ padding:52px 0 6px; }

/* ---------- Widget showcase ---------- */
.widget-grid{ display:grid; gap:20px; grid-template-columns:1fr; }
@media (min-width:920px){ .widget-grid{ grid-template-columns:repeat(2,1fr); } .widget-grid .widget-card.wide{ grid-column:1 / -1; } }
.widget-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.widget-card:hover{ transform:translateY(-4px); border-color:rgba(255,255,255,.2); box-shadow:0 18px 40px rgba(0,0,0,.4); }
.demo-frame{ position:relative; overflow:hidden; border-bottom:1px solid var(--line); }
.demo-frame iframe{ width:100%; border:0; display:block; background:transparent; }
.demo-frame.tall iframe{ height:400px; }
.demo-frame.short iframe{ height:190px; }
.scene-boss{ background:radial-gradient(420px 300px at 50% 118%, rgba(139,92,246,.4), transparent 70%), radial-gradient(300px 200px at 82% -40px, rgba(244,63,94,.22), transparent 65%), #0b0b14; }
.scene-wheel{ background:radial-gradient(380px 300px at 50% 115%, rgba(34,211,238,.32), transparent 70%), radial-gradient(280px 200px at 8% -30px, rgba(245,158,11,.18), transparent 65%), #0b0f14; }
.scene-goal{ background:radial-gradient(520px 200px at 50% 130%, rgba(16,185,129,.28), transparent 70%), radial-gradient(300px 160px at 90% -40px, rgba(139,92,246,.24), transparent 65%), #0b0f12; }
.widget-card .card-body{ padding:18px; }
.widget-card h3{ font-size:18px; }
.widget-card h3 .cmd{ color:var(--accent); font-size:14.5px; font-weight:800; white-space:nowrap; }
.widget-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }
.widget-actions .btn{ padding:11px 17px; font-size:14px; }

.steps-row{ display:grid; gap:14px; margin-top:22px; }
@media (min-width:760px){ .steps-row{ grid-template-columns:repeat(3,1fr); } }
.step-card{ background:var(--card); border:1px solid var(--line); border-radius:16px; padding:18px; }
.step-card .n{ display:inline-flex; width:28px; height:28px; border-radius:50%; background:var(--grad); color:#0b0b10; font-weight:900; align-items:center; justify-content:center; margin-bottom:9px; }
.step-card h3{ font-size:16px; margin-bottom:4px; }
.step-card p{ color:var(--muted); font-size:14px; }
.step-card code{ color:var(--text); background:var(--bg-2); padding:1px 6px; border-radius:6px; font-size:12.5px; }

/* ---------- Graphics library ---------- */
.library-grid{ display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width:560px){ .library-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:920px){ .library-grid{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:1240px){ .library-grid{ grid-template-columns:repeat(5,1fr); } }
.lib-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  display:flex; flex-direction:column; transition:transform .18s ease, border-color .18s ease;
}
.lib-card:hover{ transform:translateY(-4px); border-color:rgba(255,255,255,.2); }
.lib-media{ position:relative; aspect-ratio:4/3; background:var(--bg-2); overflow:hidden; }
.lib-media img{ width:100%; height:100%; object-fit:cover; object-position:top center; }
.included-badge{
  position:absolute; top:10px; left:10px; background:var(--grad); color:#0b0b10;
  font-size:11.5px; font-weight:800; padding:4px 10px; border-radius:999px;
  box-shadow:0 6px 16px rgba(0,0,0,.35); letter-spacing:.02em;
}
.lib-body{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:5px; flex:1; }
.lib-body h3{ font-size:15.5px; line-height:1.3; }
.lib-body .lib-meta{ color:var(--muted); font-size:13.5px; }
.lib-body .lib-meta .was{ text-decoration:line-through; }
.lib-note{ text-align:center; color:var(--muted); margin-top:20px; font-size:14.5px; }
.lib-note strong{ color:var(--text); }

/* ---------- Pricing ---------- */
.pricing-grid{ display:grid; gap:20px; grid-template-columns:1fr; max-width:920px; margin:0 auto; }
@media (min-width:820px){ .pricing-grid{ grid-template-columns:1fr 1fr; } }
.tier-card{
  background:var(--card); border:1px solid var(--line); border-radius:24px; padding:28px;
  display:flex; flex-direction:column;
}
.tier-card.featured{
  background:linear-gradient(var(--card-2),var(--card-2)) padding-box, var(--grad) border-box;
  border:1.5px solid transparent;
  box-shadow:0 22px 50px rgba(0,0,0,.45);
}
.tier-name{ font-size:13px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); }
.tier-price{ font-size:42px; font-weight:900; letter-spacing:-.02em; margin:10px 0 2px; }
.tier-price small{ font-size:16px; font-weight:700; color:var(--muted); letter-spacing:0; }
.tier-sub{ color:var(--muted); font-size:14.5px; margin-bottom:18px; }
.tier-list{ list-style:none; display:flex; flex-direction:column; gap:10px; margin-bottom:24px; flex:1; }
.tier-list li{ font-size:15px; padding-left:28px; position:relative; color:var(--text); }
.tier-list li::before{ content:"✓"; position:absolute; left:0; top:0; color:var(--accent); font-weight:900; }
.tier-list li.no{ color:var(--muted); }
.tier-list li.no::before{ content:"—"; color:var(--muted); }
.tier-card .btn{ width:100%; }
.membership-note{ text-align:center; color:var(--muted); font-size:13.5px; margin-top:14px; }
.join-btn.is-soon{ background:var(--card-2); color:var(--text); border-color:var(--accent); box-shadow:none; }

/* ---------- Free-tier / lead extras ---------- */
.also-free{ margin-top:14px; font-size:13.5px; color:var(--muted); }
.also-free a{ color:var(--accent); font-weight:700; }

/* ---------- FAQ ---------- */
.faq-list{ max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.faq-list details{
  background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px 20px;
}
.faq-list summary{ font-weight:700; font-size:16px; cursor:pointer; list-style:none; }
.faq-list summary::-webkit-details-marker{ display:none; }
.faq-list summary::after{ content:"+"; float:right; color:var(--accent); font-weight:900; font-size:19px; }
.faq-list details[open ] summary::after{ content:"–"; }
.faq-list details p{ color:var(--muted); margin-top:9px; font-size:14.5px; }
.faq-list details code{ color:var(--text); background:var(--bg-2); padding:1px 6px; border-radius:6px; font-size:12.5px; }


/* ---------- Preview lightbox ---------- */
.card-media.has-preview{ cursor:zoom-in; }
.preview-badge{
  position:absolute; right:10px; bottom:10px; z-index:2;
  background:rgba(8,8,13,.82); color:var(--text);
  border:1px solid var(--line); border-radius:999px;
  font-size:12.5px; font-weight:700; padding:6px 12px;
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.preview-btn{ background:var(--card-2); color:var(--text); border:1px solid var(--line); margin-bottom:8px; }
.preview-btn:hover{ border-color:var(--accent); color:var(--accent); }
.lightbox{
  position:fixed; inset:0; z-index:200;
  background:rgba(4,4,8,.94);
  display:flex; align-items:center; justify-content:center;
}
.lightbox[hidden]{ display:none; }
.lb-img{ max-width:94vw; max-height:82vh; border-radius:12px; box-shadow:0 24px 80px rgba(0,0,0,.6); }
.lb-close,.lb-prev,.lb-next{
  position:absolute; z-index:2; cursor:pointer;
  background:rgba(19,19,29,.9); color:var(--text);
  border:1px solid var(--line); border-radius:999px;
  width:46px; height:46px; font-size:26px; line-height:1;
}
.lb-close{ top:16px; right:16px; }
.lb-prev{ left:12px; top:50%; transform:translateY(-50%); }
.lb-next{ right:12px; top:50%; transform:translateY(-50%); }
.lb-caption{
  position:absolute; left:0; right:0; bottom:44px; text-align:center;
  font-weight:700; font-size:16px; padding:0 60px;
}
.lb-count{
  position:absolute; left:0; right:0; bottom:16px; text-align:center;
  color:var(--muted); font-size:13.5px;
}
