/* ===========================
   CSS VARIABLES & RESET
=========================== */
:root {
  --deep-blue:   #102641;
  --ikimy-blue:  #224272;
  --light-blue:  #C8D8FA;
  --gold:        #CDA43C;
  --gold-accessible: #D4A843;
  --light-gold:  #F8E8BE;
  --warm-bg:     #F9F7F3;
  --white:       #FFFFFF;
  --text-dark:   #1a1a1a;
  --text-mid:    #4a4a4a;
  --text-light:  #7a7a7a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:  8px;
  --radius-lg: 16px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--deep-blue);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===========================
   SECTION TRANSITIONS
=========================== */
.section {
  display: none;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition);
}

.section.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   BRAND MARK
=========================== */
.brand-mark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

/* ===========================
   HERO SECTION
=========================== */
#hero {
  background: var(--deep-blue);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(205, 164, 60, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 66, 114, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 90%;
  margin: 0 auto;
  padding: 4rem 0;
  text-align: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-headline em {
  font-style: italic;
  color: var(--light-gold);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--light-blue);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--deep-blue);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 2.25rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--light-gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(205, 164, 60, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.privacy-note {
  font-size: 0.75rem;
  font-weight: 400;
  color: #C8D8FA;
  margin-top: 1.25rem;
  line-height: 1.5;
}

/* ===========================
   QUESTIONS SECTION
=========================== */
#questions {
  background: var(--deep-blue);
  align-items: flex-start;
  padding-top: 3rem;
}

.questions-inner {
  width: 90%;
  max-width: 620px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.progress-bar-wrap {
  width: 100%;
  height: 2px;
  background: rgba(184, 206, 249, 0.15);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

.question-counter {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #E8BC4A;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.question-card {
  animation: fadeSlideIn 0.35s ease forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.question-hint {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(200, 216, 250, 0.75);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-style: italic;
}

.question-text {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 1.75rem;
}

.answer-area {
  margin-bottom: 1.5rem;
}

.answer-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 206, 249, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  padding: 1rem 1.25rem;
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

.answer-input::placeholder {
  color: rgba(184, 206, 249, 0.35);
}

.answer-input:focus {
  border-color: rgba(205, 164, 60, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.voice-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
}

.btn-voice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(184, 206, 249, 0.25);
  border-radius: var(--radius);
  color: var(--light-blue);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-voice:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-voice.recording {
  border-color: #e05252;
  color: #e05252;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.voice-status {
  font-size: 0.75rem;
  color: rgba(184, 206, 249, 0.5);
  font-style: italic;
}

.question-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.btn-back {
  background: transparent;
  border: none;
  color: rgba(184, 206, 249, 0.5);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color var(--transition);
}

.btn-back:hover {
  color: var(--light-blue);
}

.btn-next {
  background: transparent;
  border: 1px solid rgba(205, 164, 60, 0.4);
  border-radius: var(--radius);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-next:hover {
  background: rgba(205, 164, 60, 0.1);
  border-color: var(--gold);
}

/* ===========================
   EMAIL CAPTURE
=========================== */
#email-capture {
  background: var(--deep-blue);
}

.email-inner {
  width: 90%;
  max-width: 480px;
  margin: 0 auto;
  padding: 4rem 0;
  text-align: center;
}

.capture-heading {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.capture-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--light-blue);
  margin-bottom: 2.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 206, 249, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.875rem 1.25rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.form-input::placeholder {
  color: rgba(184, 206, 249, 0.35);
}

.form-input:focus {
  border-color: rgba(205, 164, 60, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

#email-capture .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  font-size: 1rem;
}

/* ===========================
   LOADING
=========================== */
#loading {
  background: var(--deep-blue);
  flex-direction: column;
  text-align: center;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(205, 164, 60, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-heading {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
}

.loading-sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(184, 206, 249, 0.6);
}

/* ===========================
   REPORT SECTION
=========================== */
#report {
  background: var(--warm-bg);
  color: var(--text-dark);
  align-items: flex-start;
  padding: 3rem 0 4rem;
}

.report-inner {
  width: 90%;
  max-width: 680px;
  margin: 0 auto;
}

.report-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(16, 38, 65, 0.1);
}

#report .brand-mark {
  color: var(--ikimy-blue);
  margin-bottom: 1rem;
}

.report-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ikimy-blue);
}

/* Report content styles — applied to AI-generated HTML */
.report-content {
  margin-bottom: 2.5rem;
}

.report-content .report-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(16, 38, 65, 0.08);
}

.report-content .report-section:last-child {
  border-bottom: none;
}

.report-content .section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.report-content .section-heading {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.report-content p {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-mid);
}

/* ===========================
   CTA BOX
=========================== */
.cta-box {
  background: var(--deep-blue);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E8BC4A;
  margin-bottom: 1rem;
}

.cta-body {
  font-size: 0.975rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--light-blue);
  max-width: 480px;
  margin: 0 auto 1.75rem;
}

.btn-cta {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.cta-footer {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(184, 206, 249, 0.5);
  margin-bottom: 0;
}

/* ===========================
   FOOTER
=========================== */
.page-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(16, 38, 65, 0.1);
}

.page-footer p {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ikimy-blue);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--deep-blue);
}

/* ===========================
   ERROR STATE
=========================== */
.error-msg {
  color: #e05252;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 480px) {
  .hero-inner,
  .questions-inner,
  .email-inner,
  .report-inner {
    width: 92%;
  }

  .cta-box {
    padding: 1.75rem 1.25rem;
  }

  .question-nav {
    gap: 0.75rem;
  }
}

/* ===========================
   LOGO
=========================== */
.brand-logo {
  height: 56px;
  width: auto;
  margin-bottom: 2.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#report .brand-logo {
  height: 48px;
  margin-bottom: 1rem;
  filter: none;
}

/* ===========================
   FOOTER ADDITIONS
=========================== */
.footer-privacy {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 1rem;
  line-height: 1.5;
}

.footer-copyright {
  font-size: 0.7rem;
  color: rgba(122, 122, 122, 0.6);
  margin-top: 0.4rem;
}

/* ===========================
   COPY BAR
=========================== */
.copy-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(16, 38, 65, 0.2);
  border-radius: var(--radius);
  color: var(--ikimy-blue);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-copy:hover {
  border-color: var(--ikimy-blue);
  background: rgba(34, 66, 114, 0.05);
}

.copy-confirm {
  font-size: 0.78rem;
  color: #3a7d44;
  font-weight: 500;
}

.cta-bridge {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--light-gold);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.cta-trust {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(184, 206, 249, 0.7);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

/* ===========================
   ACCESSIBILITY — FOCUS STATES
=========================== */
:focus-visible {
  outline: 3px solid #E8BC4A;
  outline-offset: 3px;
  border-radius: 4px;
}

.answer-input:focus-visible,
.form-input:focus-visible {
  outline: 3px solid #E8BC4A;
  outline-offset: 0;
}

.btn-voice:focus-visible,
.btn-back:focus-visible,
.btn-next:focus-visible,
.btn-primary:focus-visible,
.btn-copy:focus-visible {
  outline: 3px solid #E8BC4A;
  outline-offset: 3px;
}
