/* The Invisible Labor Audit - Mostly Human freebie
   Brand: The Unexamined Mind / Mostly Human (dark default)
   Fonts: Poppins (body + display), Caveat (handwritten accent only) */

:root {
  --color-ink:           #0d0a14;
  --color-canvas:        #1a1620;
  --color-deep-indigo:   #1e1a4a;
  --color-midnight:      #2e2a72;
  --color-royal:         #4435a0;
  --color-violet:        #5b3bbf;
  --color-periwinkle:    #a594ff;

  --color-pink:          #d23e8b;
  --color-rose:          #f46ab3;
  --color-orange:        #fe8a27;
  --color-amber:         #fbb34e;

  --color-petrol-deep:   #103e48;
  --color-petrol:        #1a5f6e;
  --color-petrol-bright: #2d8a9e;

  --color-soft-white:    #f5f2ff;
  --color-pure-white:    #ffffff;

  --bg:           var(--color-canvas);
  --bg-surface:   #211b29;
  --bg-elevated:  #2a2233;

  --text-primary:   var(--color-pure-white);
  --text-secondary: var(--color-soft-white);
  --text-muted:     rgba(245, 242, 255, 0.65);

  --border:        rgba(245, 242, 255, 0.10);
  --border-strong: rgba(245, 242, 255, 0.22);

  --accent-primary:   var(--color-pink);
  --accent-secondary: var(--color-violet);
  --accent-tertiary:  var(--color-rose);

  --cta-primary:       var(--color-petrol);
  --cta-primary-hover: var(--color-petrol-bright);

  --gradient-galaxy-rebel:    linear-gradient(135deg, #1e1a4a 0%, #5b3bbf 50%, #d23e8b 100%);
  --gradient-sparkle-hearted: linear-gradient(90deg, #5b3bbf 0%, #d23e8b 50%, #a594ff 100%);

  --font-body:    'Poppins', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-accent:  'Caveat', cursive;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --shadow-soft:    0 4px 16px rgba(13, 10, 20, 0.45);
  --shadow-lifted:  0 8px 32px rgba(13, 10, 20, 0.55);

  --content-pad: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem;
  width: auto; height: auto;
  background: var(--color-pink); color: white;
  padding: 0.5em 1em; border-radius: 6px; z-index: 100;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) var(--content-pad) 4rem;
  position: relative;
}

/* Typography */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1.hero {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-top: 0.2em;
}
h1.hero .accent { color: var(--accent-primary); }

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  margin-top: 0;
  color: var(--text-primary);
}

h3 {
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.6em;
  color: var(--text-primary);
}

p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: var(--text-primary); }

.eyebrow {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--color-periwinkle);
  margin: 0 0 0.2rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.subhead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0.6em 0 1.2em;
  font-weight: 400;
}

.intro-line {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.55;
  font-style: italic;
  margin: 0;
  text-wrap: pretty;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin: 0 0 0.6em;
  line-height: 1.2;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  background-image: linear-gradient(to right, var(--accent-tertiary), var(--accent-tertiary));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.3s ease, color 0.2s ease;
}
a:hover, a:focus-visible {
  background-size: 100% 2px;
  color: var(--accent-tertiary);
}
a:focus-visible { outline: 2px solid var(--color-periwinkle); outline-offset: 3px; }

/* Stamp */

.stamp {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--accent-primary);
  border: 2px dashed var(--accent-primary);
  border-radius: 6px;
  padding: 0.55em 1em;
  background: rgba(210, 62, 139, 0.06);
  transform: rotate(-2.5deg);
  margin: 0 0 1.6em;
  box-shadow: 2px 2px 0 rgba(210, 62, 139, 0.18);
}
.stamp .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--color-periwinkle);
  border-radius: 50%;
  margin: 0 0.6em;
  vertical-align: middle;
}

/* Hero */

header.hero-block {
  position: relative;
  padding: 4rem 2rem 3rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 25% 0%, rgba(91,59,191,0.30), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(210,62,139,0.22), transparent 55%),
    var(--bg-surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  margin: 1.5rem 0 3rem;
  overflow: hidden;
}
header.hero-block::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-galaxy-rebel);
}
@media (max-width: 720px) {
  header.hero-block { padding: 2rem 1.5rem; }
}

/* Promise band */

.promise {
  margin: 1em 0 3em;
  padding: 1.8em 2em 1.6em;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.promise::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--gradient-sparkle-hearted);
}
.promise .promise-eyebrow {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-periwinkle);
  margin: 0 0 0.6em;
  line-height: 1;
  display: block;
}
.promise ul { list-style: none; padding: 0; margin: 0; }
.promise li {
  position: relative;
  padding: 0.55em 0 0.55em 2.2em;
  font-size: 1.02rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
.promise li:last-child { border-bottom: none; }
.promise li::before {
  content: "\2713";
  position: absolute;
  left: 0.4em; top: 0.55em;
  width: 1.3em; height: 1.3em;
  border-radius: 50%;
  background: rgba(210, 62, 139, 0.18);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
@media (max-width: 600px) { .promise { padding: 1.4em 1.3em 1.2em; } }

/* Bar callout (credibility) */

.bar-callout {
  margin: 0 0 3em;
  padding: 1.4em 1.6em 1.2em;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border-left: 4px solid var(--accent-primary);
}
.bar-callout-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin: 0 0 0.5em;
}
.bar-callout p { margin: 0; color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

/* Worksheet preview section */

.worksheet { margin: 0 0 3.5em; }

.preview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.6em;
  box-shadow: var(--shadow-lifted);
  text-align: center;
  margin: 1.5em 0;
  position: relative;
}
.preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(165, 148, 255, 0.10), transparent 60%);
  pointer-events: none;
}
.preview-image-link {
  display: block;
  background: none;
  padding: 0;
  position: relative;
  z-index: 1;
}
.preview-image-link:hover { background: none; }
.preview-card img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
  background: #fdf6e9;
}
.preview-card:hover img { transform: rotate(0deg) scale(1.01); }
.preview-caption {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--color-periwinkle);
  margin: 1.2em 0 0;
  position: relative;
  z-index: 1;
}

/* Downloads */

.downloads {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.6em 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.4em;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
  background-image: none;
  padding-bottom: 0.85em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--cta-primary);
  color: var(--color-pure-white);
  box-shadow: 0 6px 18px rgba(26, 95, 110, 0.45);
}
.btn-primary:hover {
  background: var(--cta-primary-hover);
  transform: translateY(-1px);
  color: var(--color-pure-white);
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}
.btn .icon { font-size: 1.05em; }

/* Examples */

.examples {
  margin: 0 0 3.5em;
  padding: 2em 1.8em 1.6em;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(91, 59, 191, 0.10), transparent 55%),
    var(--bg-surface);
  border: 1px solid var(--border);
}
.examples-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 1.4em;
  text-wrap: pretty;
}
.examples-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
}
.example-card {
  background: rgba(13, 10, 20, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1em 1.2em 0.9em;
}
.example-drain {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 0.7em;
  line-height: 1.45;
}
.example-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}
.tag {
  display: inline-block;
  padding: 0.15em 0.65em;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.5em;
  vertical-align: middle;
}
.tag-yes {
  background: rgba(45, 138, 158, 0.20);
  color: #6fc8db;
  border: 1px solid rgba(45, 138, 158, 0.4);
}
.tag-maybe {
  background: rgba(251, 179, 78, 0.15);
  color: var(--color-amber);
  border: 1px solid rgba(251, 179, 78, 0.4);
}
.tag-person {
  background: rgba(165, 148, 255, 0.16);
  color: var(--color-periwinkle);
  border: 1px solid rgba(165, 148, 255, 0.4);
}
.tag-drop {
  background: rgba(254, 138, 39, 0.14);
  color: var(--color-orange);
  border: 1px solid rgba(254, 138, 39, 0.4);
}
.tag-keep {
  background: rgba(244, 106, 179, 0.14);
  color: var(--color-rose);
  border: 1px solid rgba(244, 106, 179, 0.4);
}

/* Before / After (under examples) */

.before-after {
  margin: 0 0 3.5em;
  padding: 1.8em 1.8em 1.5em;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(45, 138, 158, 0.10), transparent 55%),
    var(--bg-surface);
  border: 1px solid var(--border);
}
.before-after h3 { margin-top: 0; }
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.2em 0 1.2em;
}
@media (max-width: 720px) {
  .ba-grid { grid-template-columns: 1fr; }
}
.ba-col {
  background: rgba(13, 10, 20, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1em 1.2em 0.9em;
}
.ba-after { border-color: rgba(45, 138, 158, 0.35); }
.ba-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.6em;
}
.ba-before .ba-label { color: var(--text-muted); }
.ba-after .ba-label { color: var(--color-petrol-bright); }
.ba-col blockquote {
  margin: 0;
  padding: 0;
  border: none;
}
.ba-col blockquote p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  font-style: italic;
}
.ba-after blockquote p { font-style: normal; }
.ba-closing {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  text-wrap: balance;
}

/* Shortcut (visible hero prompt) */

.shortcut {
  margin: 0 0 2.4em;
  padding: 1.8em 1.8em 1.6em;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 100% 100%, rgba(210, 62, 139, 0.16), transparent 55%),
    var(--bg-surface);
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}
.shortcut::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-sparkle-hearted);
}
.shortcut h3 { margin-top: 0; }
.shortcut-intro {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin: 0 0 1.2em;
  line-height: 1.55;
  text-wrap: pretty;
}
.shortcut-prompt {
  background: rgba(13, 10, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1em 1.2em 1.2em;
}
.shortcut-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.6em;
}
.shortcut-actions .btn {
  padding: 0.55em 1em;
  font-size: 0.85rem;
}
.shortcut-prompt .code {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}
.copy-btn.is-copied {
  background: var(--color-petrol-bright);
}

/* Starter prompts (collapsed by default) */

.starter-prompts {
  margin: 0 0 3.5em;
}
.prompts-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 1.2em;
  max-width: 60ch;
}
.prompt-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}
.prompt-block summary {
  cursor: pointer;
  padding: 1em 1.4em;
  font-weight: 600;
  color: var(--accent-primary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
  user-select: none;
  font-size: 0.95rem;
}
.prompt-block summary::-webkit-details-marker { display: none; }
.prompt-block summary::before {
  content: "+";
  font-size: 1.3em;
  font-weight: 700;
  width: 1em;
  display: inline-block;
}
.prompt-block[open] summary::before { content: "\2212"; }
.prompt-list {
  padding: 0.4em 1.4em 1.4em;
  display: grid;
  gap: 1.4em;
}
.prompt-item .prompt-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-periwinkle);
  margin: 0 0 0.5em;
}
.prompt-item .code {
  background: rgba(13, 10, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9em 1em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}

/* Closing */

.closing {
  margin: 0 0 2em;
  text-align: center;
  padding: 0.5em 0 0;
}
.pullquote {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.2;
  color: var(--accent-tertiary);
  padding: 0.2em 0.4em;
  margin: 0.4em auto 0.8em;
  max-width: 38ch;
  text-wrap: balance;
  text-shadow: 0 0 32px rgba(244, 106, 179, 0.18);
}
.pullquote::before { content: "\201C"; margin-right: 0.05em; }
.pullquote::after { content: "\201D"; margin-left: 0.05em; }
.closing-line {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}

/* Footer */

.page-footer {
  margin: 4em 0 0;
  padding-top: 2em;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.page-footer .small {
  font-size: 0.82rem;
  margin-top: 0.6em;
  opacity: 0.7;
}
