/* The Hidden Hire — AI Side Hustle Vault LP
 * Mobile-first. Vanilla CSS. Brand: navy #0F172A + gold #D4AF37 + cream #FAF8F3
 * No external fonts (system-ui stack for LCP <0.5s)
 */

/* ============================================================
   RESET + TOKENS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  --navy: #0F172A;
  --gold: #D4AF37;
  --gold-soft: #E6C770;
  --cream: #FAF8F3;
  --body: #1F2937;
  --muted: #6B7280;
  --gray: #9CA3AF;
  --line: #E5E7EB;
  --green: #10B981;
  --max: 720px;
  --pad: 1.25rem;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { padding: 3rem 0; }

@media (min-width: 768px) {
  body { font-size: 18px; }
  section { padding: 4.5rem 0; }
  :root { --pad: 1.75rem; }
}

@media (min-width: 1024px) {
  :root { --max: 800px; --pad: 2rem; }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 3.5vw, 1.35rem); margin-bottom: 0.75rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.05rem; color: var(--body); margin-bottom: 1.5rem; }
.fine { font-size: 0.85rem; color: var(--gray); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 56px;
  width: 100%;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: var(--navy);
}
.btn-secondary {
  background: var(--navy);
  color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #1E293B;
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover, .btn-ghost:focus {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-link {
  display: inline-block;
  color: var(--gray);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 0.75rem;
}
.btn-link:hover { color: var(--navy); }

@media (min-width: 768px) {
  .btn { width: auto; padding: 1.05rem 2rem; }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
#hero h1 .accent { color: var(--gold); }
#hero .subhead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 480px;
}
#hero .hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
#hero .trust {
  font-size: 0.8rem;
  color: var(--gray);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  #hero { padding-top: 4rem; padding-bottom: 4rem; }
  #hero .hero-actions { flex-direction: row; align-items: center; gap: 1.25rem; }
}

/* ============================================================
   QUIZ
   ============================================================ */
#quiz {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.quiz-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--gold);
  width: 20%;
  transition: width 0.3s ease;
}
.quiz-progress-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-step h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--body);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  min-height: 56px;
}
.quiz-option:hover, .quiz-option:focus {
  border-color: var(--gold);
  background: #fff;
  outline: none;
}
.quiz-option:active { transform: scale(0.99); }
.quiz-option.is-selected {
  border-color: var(--gold);
  background: #FFF8E1;
}

/* Q5 — email capture */
.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quiz-form input[type="email"] {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: inherit;
}
.quiz-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.quiz-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}
.quiz-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}
.quiz-form-error {
  display: none;
  color: #B91C1C;
  font-size: 0.9rem;
  padding: 0.75rem;
  background: #FEF2F2;
  border-radius: 8px;
}
.quiz-form-error.is-visible { display: block; }
.quiz-loading { display: none; font-size: 0.95rem; color: var(--muted); }
.quiz-loading.is-visible { display: block; }

/* ============================================================
   RESULT
   ============================================================ */
#result {
  background: var(--navy);
  color: #fff;
}
#result h2, #result h3 { color: #fff; }
#result h2 .type-name { color: var(--gold); }

/* Inline confirmation banner — shown after successful capture */
.capture-confirm {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.capture-confirm[hidden] { display: none; }
.capture-confirm-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}
.capture-confirm-text { flex: 1; }
.capture-confirm-text strong {
  font-weight: 600;
  word-break: break-all;
  color: #fff;
}
#result .result-paragraph {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.prompt-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.prompt-card .prompt-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.prompt-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.prompt-card .prompt-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}
.prompt-card .prompt-preview {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  white-space: pre-line;
}

#result .checks {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.95rem;
}
#result .checks li {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem 0;
  color: rgba(255,255,255,0.85);
}
#result .checks li::before {
  content: "✅";
  flex-shrink: 0;
}

/* ============================================================
   HIDDEN HIRE SYSTEM (5 cards)
   ============================================================ */
#system {
  background: #fff;
}
.system-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.system-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--cream);
  transition: border-color 0.15s, background 0.15s;
}
.system-card.is-yours {
  border-color: var(--gold);
  background: #FFF8E1;
  position: relative;
}
.system-card.is-yours::before {
  content: "YOUR TYPE";
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
}
.system-card .specialist-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.system-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.system-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

@media (min-width: 768px) {
  .system-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PROMPTS PREVIEW (See 3 prompts)
   ============================================================ */
#prompts-preview { background: var(--cream); }
.preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.preview-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.preview-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.preview-item summary::-webkit-details-marker { display: none; }
.preview-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 400;
  transition: transform 0.2s;
}
.preview-item[open] summary::after { transform: rotate(45deg); }
.preview-item .preview-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--body);
  line-height: 1.6;
}
.preview-item .preview-body code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  background: var(--cream);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-top: 0.75rem;
  white-space: pre-line;
  color: var(--navy);
}

/* ============================================================
   VALUE STACK
   ============================================================ */
#value-stack { background: #fff; }
.stack-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.stack-table td {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.stack-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--navy);
}
.stack-table tr.total td {
  border-top: 2px solid var(--navy);
  border-bottom: none;
  padding-top: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.stack-table tr.today td {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 800;
}

/* ============================================================
   PRICING + GUARANTEE
   ============================================================ */
#pricing {
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}
.price-anchor {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  margin: 1.25rem 0;
}
.price-anchor .price-old {
  font-size: 1.4rem;
  color: var(--gray);
  text-decoration: line-through;
}
.price-anchor .price-mid {
  font-size: 1.4rem;
  color: var(--muted);
  text-decoration: line-through;
}
.price-anchor .price-now {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.guarantee-box {
  background: #fff;
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.guarantee-box h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}
.guarantee-box h3::before {
  content: "🛡️";
  font-size: 1.3rem;
}

/* ============================================================
   FAQ
   ============================================================ */
#faq { background: #fff; }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }
.faq-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.92rem;
  color: var(--body);
  line-height: 1.6;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
#final-cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
#final-cta h2 { color: #fff; }
#final-cta p { color: rgba(255,255,255,0.8); }
#final-cta .btn-primary { margin-top: 1rem; }
#final-cta .ftc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #0A0F1A;
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 0 5rem;
  font-size: 0.85rem;
  line-height: 1.6;
}
footer a { color: rgba(255,255,255,0.8); text-decoration: underline; }
footer a:hover { color: var(--gold); }
footer .footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: block;
}
footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
footer .footer-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
#sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--gold);
  padding: 0.75rem var(--pad);
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 -4px 16px rgba(15,23,42,0.18);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  border-top: 2px solid var(--gold);
}
#sticky-cta.is-visible { transform: translateY(0); }
#sticky-cta:hover { background: #1E293B; }

@media (min-width: 768px) {
  #sticky-cta { display: none; }
  footer { padding-bottom: 2.5rem; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Reveal animation for post-quiz sections */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
