/* Standin — trust site (standin.me). Mobile-first, no build step. */
:root {
  --bg: #0b0b0f;
  --bg-soft: #14141b;
  --card: #17171f;
  --line: #262633;
  --text: #e8e8ee;
  --muted: #9a9aa8;
  --grad: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #c4a7ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: var(--text); }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav a { color: var(--muted); font-size: 14px; margin-left: 16px; }
.hero { padding: 56px 0 40px; text-align: center; }
.hero h1 { font-size: 34px; line-height: 1.15; letter-spacing: -1px; margin: 0 0 14px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 auto 28px; max-width: 480px; }
.btn {
  display: inline-block; background: var(--grad); color: #fff; font-weight: 700;
  padding: 15px 30px; border-radius: 999px; font-size: 17px; border: none;
}
.btn:hover { text-decoration: none; opacity: 0.94; }
.btn-ghost {
  display: inline-block; color: var(--muted); padding: 15px 20px; font-size: 15px;
}
h2 { font-size: 22px; letter-spacing: -0.4px; margin: 40px 0 16px; }
h3 { font-size: 16px; margin: 22px 0 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 12px 0; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: none; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700; text-align: center; line-height: 28px; font-size: 14px;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tag { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; font-size: 15px; }
.tag .emoji { font-size: 24px; display: block; margin-bottom: 6px; }
.safety { border-left: 3px solid #ec4899; }
.muted { color: var(--muted); }
.center { text-align: center; }
.cta-block { text-align: center; padding: 44px 0; }
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 48px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 16px; }
.legal h2 { font-size: 20px; }
.legal p, .legal li { color: #cfcfd8; }
.legal .updated { color: var(--muted); font-size: 14px; }

/* --- Demo media strip --------------------------------------------- */
.demos { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 16px 0 4px; }
.demo { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; aspect-ratio: 9 / 16; }
.demo video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.demo-label { position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); padding: 4px 8px; background: rgba(0,0,0,.45); border-radius: 8px; backdrop-filter: blur(4px); }
@media (max-width: 520px) { .demos { grid-template-columns: 1fr 1fr; } .demo:nth-child(3) { display: none; } }
@media (prefers-reduced-motion: reduce) { .demo video { display: none; } .demo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #2a1f4d, #4d1f3d); } }

/* --- Sticky mobile CTA -------------------------------------------- */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
    text-align: center;
  }
  .sticky-cta .btn { width: 100%; box-shadow: 0 8px 24px rgba(124, 58, 237, .35); padding: 14px 20px; }
  body { padding-bottom: 80px; } /* prevent last content from being hidden under sticky bar */
}

/* --- Page hero variants (scene + intent) -------------------------- */
.page-hero { padding: 40px 0 24px; text-align: center; }
.page-hero h1 { font-size: 30px; line-height: 1.18; letter-spacing: -0.6px; margin: 0 0 12px; }
.page-hero p { color: var(--muted); font-size: 17px; margin: 0 auto 24px; max-width: 520px; }
.page-hero .btn { margin-top: 4px; }
@media (min-width: 720px) { .page-hero h1 { font-size: 36px; } }

.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); margin-bottom: 14px;
}

/* --- Feature list (used on intent + scene pages) ------------------- */
.features { list-style: none; padding: 0; margin: 12px 0 0; }
.features li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); }
.features li:last-child { border-bottom: none; }
.features li::before {
  content: "→"; position: absolute; left: 0; top: 10px; color: var(--grad);
  font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.features li strong { color: var(--text); }

/* --- Gallery (used for meme-reaction plates previews) -------------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.gallery-item { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item .label { position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); padding: 4px 8px; background: rgba(0,0,0,.45); border-radius: 8px; backdrop-filter: blur(4px); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* Effect-page example render (landscape 16:9 demo still) */
.example { margin: 18px 0 6px; }
.example img { width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid var(--line); }
.example figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; text-align: center; }
.example-pair { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0 6px; }
@media (min-width: 560px) { .example-pair { grid-template-columns: 1fr 1fr; } }
.example-pair figure { margin: 0; }
.example-pair img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); }
.example-pair figcaption { color: var(--muted); font-size: 12px; margin-top: 6px; text-align: center; }

/* --- Cross-link strip (related pages) ----------------------------- */
.related { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.related a {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); color: var(--text); font-size: 14px;
}
.related a:hover { border-color: #7c3aed; text-decoration: none; }

/* --- Scene hero (single big demo with label) ----------------------- */
.scene-hero { margin: 16px 0 8px; }
.scene-hero .demo { aspect-ratio: 9 / 16; max-width: 320px; margin: 0 auto; }

/* --- Compact demo strip (used inside body of intent pages) --------- */
.demo-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.demo-strip .demo { aspect-ratio: 1 / 1; }
.demo-strip .demo-label { font-size: 11px; }
@media (max-width: 520px) { .demo-strip { grid-template-columns: 1fr 1fr; } .demo-strip .demo:nth-child(3) { display: none; } }

/* --- Article body (for /learn long-form content) ------------------ */
.article-body p { color: #cfcfd8; margin: 0 0 16px; line-height: 1.7; }
.article-body p strong { color: var(--text); }
.article-body h2 { font-size: 24px; letter-spacing: -0.4px; margin: 40px 0 14px; }
.article-body h3 { font-size: 18px; margin: 28px 0 8px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 16px; }
.article-body li { margin: 6px 0; color: #cfcfd8; }
.article-body blockquote { border-left: 3px solid #7c3aed; padding: 6px 0 6px 16px; margin: 16px 0; color: #cfcfd8; font-style: italic; }
.article-body a { color: #c4a7ff; text-decoration: underline; }
.article-body a:hover { text-decoration: none; }
.article-body code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; font-size: 14px; }

/* --- Table of contents (TOC) for /learn articles -------------------- */
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 16px 0 24px; }
.toc h2 { font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.toc ol { padding-left: 22px; margin: 0; }
.toc li { margin: 4px 0; color: var(--text); }
.toc a { color: #c4a7ff; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* --- Tip / callout blocks inside articles ------------------------- */
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid #ec4899; border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.callout p { color: var(--text); margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }

/* --- Numbered listicle cards -------------------------------------- */
.list-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
.list-item h3 { font-size: 16px; margin: 0 0 6px; }
.list-item p { color: #cfcfd8; margin: 0; line-height: 1.6; }
