/* Build Your Own Yes Check - Mostly Human Issue 52 freebie
   Galaxy Rebel palette (from the app + PRD section 5),
   layout chassis borrowed from the existing kit sites. */

:root {
  /* Galaxy Rebel - brand anchors */
  --bg:            #160f1d;   /* deep plum-black */
  --bg-surface:    #20162b;   /* cards / lifted surfaces */
  --bg-elevated:   #2a1d38;   /* nested surfaces */

  --text-primary:   #f3eef8;  /* near-white */
  --text-secondary: rgba(243, 238, 248, 0.86);
  --text-muted:     rgba(243, 238, 248, 0.62);

  --pink:        #ff4da6;     /* accent - "Yes" and key highlights */
  --lavender:    #c39bf0;     /* script / Caveat accent */
  --purple:      #9d4edd;     /* primary purple */
  --blue:        #1e90ff;     /* gradient tail */

  --border:        rgba(243, 238, 248, 0.10);
  --border-strong: rgba(243, 238, 248, 0.20);

  --gradient: linear-gradient(135deg, #6a0dad 0%, #ff4da6 50%, #1e90ff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(106,13,173,0.18) 0%, rgba(255,77,166,0.18) 50%, rgba(30,144,255,0.18) 100%);

  --font-body:   'Poppins', system-ui, -apple-system, sans-serif;
  --font-accent: 'Caveat', cursive;
  --font-mono:   'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-pill: 999px;

  --shadow-soft:   0 4px 16px rgba(0, 0, 0, 0.40);
  --shadow-lifted: 0 10px 36px rgba(0, 0, 0, 0.50);
  --glow-pink:     0 0 28px rgba(255, 77, 166, 0.32);

  --content: 960px;
  --pad: clamp(1.5rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint galaxy glow behind the top of the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 80% -5%, rgba(255, 77, 166, 0.14), transparent 60%),
    radial-gradient(55% 35% at 10% 5%, rgba(106, 13, 173, 0.22), transparent 60%);
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--pad);
}

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* skip link */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pink);
  color: #160f1d;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 50;
}
.skip:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-body); line-height: 1.18; margin: 0 0 var(--space-4); }
h1 { font-weight: 700; font-size: clamp(2.1rem, 7vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-weight: 600; font-size: clamp(1.5rem, 4.5vw, 2rem); letter-spacing: -0.01em; margin-top: var(--space-4); }
h3 { font-weight: 600; font-size: 1.18rem; }

p { margin: 0 0 var(--space-4); color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }

.accent { color: var(--pink); }
.muted { color: var(--text-muted); }
.script { font-family: var(--font-accent); color: var(--lavender); font-size: 1.5em; line-height: 1.1; }

/* ---------- structural ---------- */
section { padding: var(--space-10, 2.5rem) 0; scroll-margin-top: 1.5rem; }

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender);
  margin: 0 0 var(--space-3);
}

/* version stamp - rotated dashed, house style */
.stamp {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: var(--pink);
  border: 2px dashed var(--pink);
  border-radius: 6px;
  padding: 0.5em 1em;
  background: rgba(255, 77, 166, 0.06);
  transform: rotate(-2.5deg);
  margin: 0 0 1.6em;
  box-shadow: 2px 2px 0 rgba(255, 77, 166, 0.18);
}
.stamp .dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  margin: 0 0.55em;
  vertical-align: middle;
}

/* hero eyebrow - handwritten Caveat accent */
.eyebrow {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--lavender);
  margin: 0 0 0.3rem;
}

/* thin gradient rule, decoration only */
.rule {
  height: 3px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  margin: var(--space-8) 0;
  opacity: 0.9;
}

/* ---------- hero (in its own box) ---------- */
.hero { padding-top: var(--space-12); padding-bottom: var(--space-6); }
.hero-card {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(255, 77, 166, 0.16), transparent 60%),
    radial-gradient(ellipse at 0% 110%, rgba(106, 13, 173, 0.22), transparent 55%),
    var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  box-shadow: var(--shadow-lifted);
}
.hero-card h1 { margin-bottom: var(--space-4); }
.hero .subhead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0;
}
.hero .reassure {
  margin: var(--space-6) 0 0;
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--lavender);
  font-size: 1.7rem;
  line-height: 1.2;
}

/* ---------- cards / callouts ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft);
}
.card + .card { margin-top: var(--space-6); }

.callout {
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

/* the quick three-step box */
.quickbox { background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-lifted); }

/* uniform breathing room before each step (step 1, 2, 3) */
section:has(> .kicker) { margin-top: var(--space-12); }
.steps { list-style: none; counter-reset: step; margin: var(--space-4) 0 0; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: var(--space-6);
}
.steps > li:last-child { margin-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #160f1d;
  background: var(--pink);
  border-radius: var(--radius-pill);
  box-shadow: var(--glow-pink);
}
.steps > li strong { display: block; margin-bottom: 0.15rem; }

/* plain ordered steps inside doorways */
ol.plain { padding-left: 1.3rem; margin: var(--space-3) 0 0; }
ol.plain li { margin-bottom: var(--space-2); color: var(--text-secondary); }

/* ---------- the prompt block ---------- */
.prompt-block { margin: var(--space-6) 0; }
.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.actions-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--pink); color: #160f1d; box-shadow: var(--glow-pink); }
.btn-primary:hover { background: #ff6fb6; }
.btn-primary.copied { background: var(--lavender); }

.btn-secondary { background: transparent; color: var(--text-secondary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--pink); color: var(--text-primary); }

.btn .icon { font-size: 1.05em; line-height: 1; }

/* collapsible prompt - collapsed by default */
.prompt-details {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.prompt-details > summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-4) var(--space-6);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
}
.prompt-details > summary::-webkit-details-marker { display: none; }
.prompt-details > summary::before {
  content: "\25B8";
  color: var(--pink);
  font-size: 0.8em;
  transition: transform 0.18s ease;
}
.prompt-details[open] > summary::before { transform: rotate(90deg); }
.prompt-details > summary:hover { color: var(--pink); }

pre.code {
  margin: 0;
  padding: var(--space-6);
  border-top: 1px solid var(--border);
  background: #140d1c;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  max-height: 60vh;
  overflow-y: auto;
}
pre.code .fill { color: var(--pink); font-weight: 600; }
pre.code .sec { color: var(--lavender); }

/* the slot guidance note list */
.slot-guide { display: grid; gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.slot-guide li { padding-left: 1.4rem; position: relative; color: var(--text-secondary); }
.slot-guide li::before { content: "\2192"; position: absolute; left: 0; color: var(--pink); font-weight: 700; }
.slot-guide code { font-family: var(--font-mono); font-size: 0.85em; color: var(--lavender); background: var(--bg-elevated); padding: 0.05rem 0.35rem; border-radius: var(--radius-sm); }

/* ---------- doorways ---------- */
.doorway { margin-top: var(--space-6); }
.doorway-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.doorway-head h3 { margin: 0; }
.flag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
}
.flag-free { background: rgba(255, 77, 166, 0.16); color: var(--pink); border: 1px solid rgba(255,77,166,0.35); }
.flag-paid { background: rgba(251, 179, 78, 0.14); color: #fbb34e; border: 1px solid rgba(251,179,78,0.35); }
.flag-neutral { background: rgba(195, 155, 240, 0.14); color: var(--lavender); border: 1px solid rgba(195,155,240,0.35); }

/* ---------- safety net ---------- */
.safety {
  border: 1px solid rgba(30, 144, 255, 0.3);
  background: rgba(30, 144, 255, 0.07);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.safety h2 { margin-top: 0; }

/* ---------- newsletter ---------- */
.news {
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}

/* ---------- closer + footer ---------- */
.closer {
  text-align: center;
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.closer span { display: block; }
.closer .one-thing { font-family: var(--font-accent); color: var(--lavender); font-size: 1.8rem; line-height: 1.2; }
.closer .signoff { color: var(--text-secondary); margin-top: var(--space-2); }
.closer .signature { font-family: var(--font-accent); color: var(--pink); font-size: 2.2rem; line-height: 1; margin-top: var(--space-1); }

.site-foot { text-align: center; padding: var(--space-4) 0 var(--space-16); color: var(--text-muted); }
.site-foot .tiny { font-size: 0.82rem; color: var(--text-muted); margin-bottom: var(--space-2); }
.todo {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #fbb34e;
  border: 1px dashed rgba(251,179,78,0.5);
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.45rem;
}

/* ---------- the worked-example Yes Card ---------- */
.draft-note {
  font-family: var(--font-accent);
  color: var(--lavender);
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 var(--space-4);
  opacity: 0.9;
}
.yes-card {
  position: relative;
  margin: var(--space-6) 0;
  padding: var(--space-8);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 77, 166, 0.12), transparent 55%),
    var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lifted);
  overflow: hidden;
  max-width: 540px;
}
.yes-card-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gradient);
}
.yes-card-title {
  font-family: var(--font-accent);
  color: var(--pink);
  font-size: 1.9rem;
  line-height: 1;
  margin: var(--space-2) 0 var(--space-6);
}
.yes-card-fields { margin: 0; }
.yes-card-fields > div {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}
.yes-card-fields > div:first-child { border-top: 0; padding-top: 0; }
.yes-card-fields dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.yes-card-fields dd {
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
}
.yes-card-trap {
  margin: var(--space-6) 0 0;
  padding-top: var(--space-4);
  border-top: 1px dashed var(--border-strong);
  color: var(--pink);
  font-weight: 600;
}

/* the "what you bring" line inside the quickbox */
.kicker-line {
  margin: var(--space-6) 0 0;
  color: var(--lavender);
  font-weight: 500;
}

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  body { font-size: 1.09375rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
