/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg:            #F5EFE6;
  --text:          #1A1A1A;
  --text-muted:    #6B6B6B;
  --accent:        #8A8E5A;
  --accent-light:  #C8CC9A;
  --accent-dark:   #5C5F36;
  --card-bg:       #8A8E5A;
  --white:         #FFFFFF;
  --border:        rgba(26,26,26,0.15);

  --font-serif:    'Georgia', 'Times New Roman', serif;
  --font-sans:     system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:     'Courier New', monospace;

  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     40px;

  --transition:    0.35s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Screen system ─────────────────────────────────────────── */
.screen {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  transition: opacity var(--transition);
}
.screen.active {
  display: flex;
  flex-direction: column;
}
.screen.visible {
  opacity: 1;
}

/* ── Nav bar ───────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-logo .wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.05em;
  line-height: 1;
}
.nav-logo .tagline {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.skip-link {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
  transition: opacity var(--transition);
  white-space: nowrap;
  align-self: center;
}
.skip-link:hover { opacity: 0.6; }

/* ── Screen body ───────────────────────────────────────────── */
.screen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

/* ── Breathing screen ──────────────────────────────────────── */
#screen-breathing {
  background: var(--bg);
}
.breath-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 500px;
  height: 500px;
}
.breath-circle {
  position: absolute;
  border-radius: 50%;
  transform-origin: center;
}
.breath-circle-1 {
  width: 494px;
  height: 494px;
  background: radial-gradient(ellipse at 40% 35%, #B8C4A8 0%, #A8B898 30%, #8A9A78 60%, transparent 80%),
              radial-gradient(ellipse at 70% 65%, #C8D4B8 0%, #B0C0A0 40%, transparent 70%);
  opacity: 0.35;
}
.breath-circle-2 {
  width: 371px;
  height: 371px;
  background: radial-gradient(ellipse at 35% 30%, #C8D4A8 0%, #B8C8A0 35%, #A0B088 60%, transparent 80%);
  opacity: 0.5;
}
.breath-circle-3 {
  width: 265px;
  height: 265px;
  background: radial-gradient(ellipse at 40% 35%, #D8E4B8 0%, #C8D8A8 40%, #B0C090 70%, transparent 90%);
  opacity: 0.7;
}
.breath-label {
  position: relative;
  z-index: 10;
  text-align: center;
  pointer-events: none;
}
.breath-phase {
  font-size: 22px;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--text);
  text-transform: lowercase;
}
.breath-timer {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* Background blobs on breathing screen */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #C8D4A8 0%, #B0C090 40%, transparent 70%);
  top: -200px; left: -200px;
  opacity: 0.5;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #B8D4C8 0%, #9EC4B0 40%, transparent 70%);
  bottom: -150px; right: -150px;
  opacity: 0.4;
}

/* Breathing animation states */
@keyframes breatheIn {
  from { transform: scale(0.35); }
  to   { transform: scale(1); }
}
@keyframes breatheHold {
  from, to { transform: scale(1); }
}
@keyframes breatheOut {
  from { transform: scale(1); }
  to   { transform: scale(0.35); }
}

.breath-anim-in  .breath-circle { animation: breatheIn  5s ease-in-out forwards; }
.breath-anim-hold .breath-circle { animation: breatheHold 2s ease-in-out forwards; }
.breath-anim-out  .breath-circle { animation: breatheOut  8s ease-in-out forwards; }

.breath-anim-in .breath-circle-1  { animation-delay: 0s; }
.breath-anim-in .breath-circle-2  { animation-delay: 0.1s; }
.breath-anim-in .breath-circle-3  { animation-delay: 0.2s; }
.breath-anim-out .breath-circle-1 { animation-delay: 0s; }
.breath-anim-out .breath-circle-2 { animation-delay: 0.1s; }
.breath-anim-out .breath-circle-3 { animation-delay: 0.2s; }

/* ── Quiz screens ──────────────────────────────────────────── */
.quiz-progress {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.quiz-progress-bar {
  width: 100%;
  max-width: 600px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 48px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.quiz-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  text-align: center;
  max-width: 600px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.quiz-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
  max-width: 500px;
}
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 540px;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: rgba(138, 142, 90, 0.12);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  font-family: var(--font-sans);
  line-height: 1.4;
}
.option-btn:hover {
  background: rgba(138, 142, 90, 0.22);
  transform: translateX(3px);
}
.option-btn.selected {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: var(--white);
}
.option-btn.redirect {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.option-btn.redirect:hover {
  color: var(--text);
  border-color: var(--text);
  transform: none;
}
.option-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

/* ── Lead capture ──────────────────────────────────────────── */
.lead-form {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lead-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  text-align: center;
  margin-bottom: 8px;
}
.lead-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
  max-width: 380px;
  align-self: center;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-input {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 15px;
  color: var(--text);
  font-family: var(--font-sans);
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
}
.form-input::placeholder {
  color: rgba(26,26,26,0.35);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.submit-btn {
  padding: 16px 32px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-sans);
  margin-top: 8px;
}
.submit-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Result screen ─────────────────────────────────────────── */
.result-eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.ritual-card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 48px 52px;
  width: 100%;
  max-width: 660px;
  overflow: hidden;
  color: var(--white);
  margin-bottom: 32px;
}
.ritual-card-blob {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 50%, transparent 70%);
  pointer-events: none;
}
.ritual-card-blob-2 {
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.ritual-name {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 400;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.ritual-description {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 460px;
  position: relative;
  z-index: 1;
}
.ritual-tip {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.7;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
  position: relative;
  z-index: 1;
}
.ritual-cta {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--transition);
  font-family: var(--font-sans);
}
.ritual-cta:hover { opacity: 0.6; }

/* ── Fade transition between screens ──────────────────────── */
.screen-enter {
  animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav { padding: 20px 20px; }
  .screen-body { padding: 32px 20px; }
  .breath-stage { width: 300px; height: 300px; }
  .breath-circle-1 { width: 296px; height: 296px; }
  .breath-circle-2 { width: 222px; height: 222px; }
  .breath-circle-3 { width: 159px; height: 159px; }
  .ritual-card { padding: 32px 28px; }
  .nav-logo .wordmark { font-size: 22px; }
}
