/* 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; gap: 18px;
  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 { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
nav a { color: var(--muted); font-size: 14px; white-space: nowrap; }
.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; }

/* --- Web-first Action Hero creator ------------------------------- */
.create-wrap { max-width: 820px; }
.surface-choice { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.surface-choice .btn-ghost { border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; }
.web-flow { display: grid; gap: 14px; margin: 20px 0 48px; }
.flow-step { position: relative; }
.flow-step[hidden], [hidden] { display: none !important; }
.flow-step h2 { margin: 0 0 10px; }
.flow-step.is-current { border-color: #7c3aed; box-shadow: 0 0 0 1px rgba(124, 58, 237, .35); }
.step-label { color: #c4a7ff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.scene-summary { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.scene-summary img { width: 96px; height: 132px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.scene-summary h2 { margin: 0 0 4px; }
.scene-facts { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.consent-list { padding-left: 22px; color: #cfcfd8; }
.consent-list li { margin: 7px 0; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--bg-soft); }
.consent-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #7c3aed; flex: 0 0 auto; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.button-row button, .button-row a { cursor: pointer; }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--text); font-weight: 650;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px;
}
.btn-secondary:hover { border-color: #7c3aed; text-decoration: none; }
.btn:disabled, .btn-secondary:disabled { opacity: .45; cursor: not-allowed; }
.upload-control { display: block; width: 100%; color: var(--muted); border: 1px dashed #4c4c60; background: var(--bg-soft); border-radius: 12px; padding: 18px; }
.upload-control input { display: block; width: 100%; margin-top: 10px; color: var(--text); }
.status-box { min-height: 48px; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg-soft); color: var(--muted); }
.status-box[aria-busy="true"]::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 9px; border: 2px solid #7c3aed; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status-box[aria-busy="true"]::before { animation: none; } }
.progress { width: 100%; height: 8px; margin-top: 12px; accent-color: #7c3aed; }
.result-video { width: 100%; max-height: 70vh; display: block; background: #000; border: 1px solid var(--line); border-radius: 14px; }
.privacy-note { font-size: 13px; color: var(--muted); }
.error-text { color: #fda4af; }
.success-text { color: #86efac; }
.notice { border-left: 3px solid #7c3aed; }
noscript .card { border-color: #ef4444; }

@media (max-width: 720px) {
  header { align-items: flex-start; }
  nav { max-width: 76%; gap: 4px 11px; }
  nav a { font-size: 12px; }
  .scene-summary { grid-template-columns: 72px 1fr; }
  .scene-summary img { width: 72px; height: 100px; }
}
