/* Business Anxiety Type assessment - Craig Gibson / The Architect Method */

:root {
  --black: #0A0A0A;
  --charcoal: #2A2A2A;
  --gold: #C9A961;
  --gold-soft: rgba(201, 169, 97, 0.12);
  --gold-mid: rgba(201, 169, 97, 0.30);
  --off-white: #F5F2EC;
  --white: #FFFFFF;
  --text: #0A0A0A;
  --text-muted: rgba(10, 10, 10, 0.62);
  --text-on-dark: #F5F2EC;
  --text-muted-on-dark: rgba(245, 242, 236, 0.66);
  --border: rgba(10, 10, 10, 0.10);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hide { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--black);
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  padding: 1rem 2.2rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--ease) 0.2s, box-shadow var(--ease) 0.2s, background 0.2s;
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201, 169, 97, 0.36); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-block { display: block; width: 100%; max-width: 420px; margin: 1.25rem auto 0; }
.btn-gold { background: var(--gold); }
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border);
  box-shadow: none;
  font-weight: 500;
}
.btn-outline:hover { border-color: var(--gold); box-shadow: none; transform: translateY(-1px); }

/* ---------- Header ---------- */
.header { border-bottom: 1px solid var(--border); background: var(--white); }
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { height: 30px; width: auto; }
.header-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Views ---------- */
.view { min-height: calc(100vh - 130px); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.eyebrow-light { color: var(--gold); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.3rem;
}
.hero-trust { margin-top: 1.6rem; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Progress ---------- */
.progress { border-bottom: 1px solid var(--border); background: var(--white); position: sticky; top: 0; z-index: 5; }
.progress-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.progress-track { flex: 1; height: 6px; background: var(--gold-soft); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 8%; background: var(--gold); border-radius: 999px; transition: width 0.4s var(--ease); }
.progress-count { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }

/* ---------- Question ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.question-card { animation: fadeUp 0.35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.question-tag {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}
.question-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 2rem;
}
.answers { display: flex; flex-direction: column; gap: 0.85rem; }
.answer-option {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 400;
  text-align: left;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
}
.answer-option:hover { border-color: var(--gold-mid); background: var(--gold-soft); }
.answer-option.selected { border-color: var(--gold); background: var(--gold-soft); font-weight: 500; }
.nav-back {
  margin-top: 2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0.4rem 0;
}
.nav-back:hover { color: var(--gold); }

/* ---------- Email capture ---------- */
.email-capture { max-width: 480px; margin: 0 auto; padding: 4.5rem 1.5rem; text-align: center; }
.email-capture h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0.4rem 0 1rem;
}
.email-capture p { color: var(--text-muted); margin-bottom: 2rem; }
.form-group { text-align: left; margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
  color: var(--text);
}
.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.18s;
}
.form-input:focus { outline: none; border-color: var(--gold); }
.form-error { color: #B4452F; font-size: 0.86rem; margin-bottom: 0.8rem; text-align: left; }
.form-fine { font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; }

/* ---------- Loading ---------- */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; padding: 2rem; text-align: center; }
.spinner {
  width: 46px; height: 46px;
  border: 3px solid var(--gold-soft);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.4rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--text-muted); font-size: 1rem; }

/* ---------- Report ---------- */
#report-capture { background: var(--off-white); }

.pdf-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  background: var(--black);
}
.pdf-logo { height: 26px; }
.pdf-head-tag { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
body.capturing .pdf-head { display: flex; }

.score-block {
  background: var(--black);
  color: var(--text-on-dark);
  text-align: center;
  padding: 4rem 1.5rem 4.5rem;
}
.score-number {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  margin: 0.6rem 0 1.4rem;
}
.score-number #report-score { font-size: clamp(4.5rem, 14vw, 7rem); color: var(--gold); }
.score-divider, .score-max { color: var(--text-muted-on-dark); font-size: clamp(2rem, 6vw, 3rem); }
.risk-band {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  color: var(--gold);
  padding-bottom: 1rem;
}
.risk-summary {
  max-width: 540px;
  margin: 0 auto;
  color: var(--text-muted-on-dark);
  font-size: 1.02rem;
}

.report-section { max-width: var(--max); margin: 0 auto; padding: 3.5rem 1.5rem; border-bottom: 1px solid var(--border); }
.section-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.18;
  margin-bottom: 0.9rem;
}
.section-intro { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.02rem; }

/* Your type */
.type-section { text-align: left; }
.type-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin: 0.4rem 0 1.2rem;
}
.type-root {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 1.1rem;
  margin-bottom: 1.8rem;
}
.type-read { font-size: 1.08rem; color: var(--text); line-height: 1.75; }
.secondary-thread {
  margin-top: 1.8rem;
  background: var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-size: 0.98rem;
  color: var(--text);
}

/* Type bars */
.type-bars { display: flex; flex-direction: column; gap: 1.3rem; }
.type-bar { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; align-items: center; }
.type-bar-label { font-weight: 500; font-size: 0.96rem; grid-column: 1 / 2; }
.dom-pill {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.type-bar-track { grid-column: 1 / 2; height: 10px; background: var(--gold-soft); border-radius: 999px; overflow: hidden; }
.type-bar-fill { height: 100%; background: rgba(10,10,10,0.28); border-radius: 999px; transition: width 0.6s var(--ease); }
.type-bar-fill.dom { background: var(--gold); }
.type-bar-score { grid-column: 2 / 3; grid-row: 1 / 3; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--text); }

/* Anxiety tax */
.tax-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.tax-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.02rem;
  color: var(--text);
}
.tax-list li::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.7rem;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

/* Way out */
.wayout-section { background: var(--white); }
.wayout-text { font-size: 1.08rem; line-height: 1.78; color: var(--text); }

/* CTA */
.cta-block {
  background: var(--black);
  color: var(--text-on-dark);
  text-align: center;
  padding: 4rem 1.5rem 4.5rem;
}
.cta-eyebrow { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.cta-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.cta-offer { max-width: 560px; margin: 0 auto 1.1rem; color: var(--gold); font-size: 1.06rem; font-weight: 500; }
.cta-sub { max-width: 540px; margin: 0 auto 2.2rem; color: var(--text-muted-on-dark); font-size: 0.98rem; }

/* Download */
.download-block { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.5rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.restart { background: none; border: none; color: var(--text-muted); font-family: var(--font-body); font-size: 0.9rem; cursor: pointer; }
.restart:hover { color: var(--gold); }

/* Footer */
.site-footer { text-align: center; padding: 2.5rem 1.5rem; color: var(--text-muted); font-size: 0.82rem; letter-spacing: 0.04em; }

/* Hide interactive chrome during PDF capture */
body.capturing .download-block,
body.capturing .site-footer { display: none !important; }

/* In-app browser help */
.browser-help {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}
.browser-help-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  text-align: center;
}
.browser-help-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.8rem; }
.browser-help-card p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; }
.browser-help-how { font-size: 0.9rem; }
.browser-help-card .btn { margin-top: 0.5rem; }

@media (max-width: 520px) {
  .hero { padding: 3rem 1.25rem 3.5rem; }
  .btn { width: 100%; }
  .cta-block .btn, .hero .btn { max-width: 360px; }
}
