/* The free 90-second reset. Calm by construction: one thing on screen at a
   time, generous space, nothing that competes with the breathing circle. */

:root {
  --reset-ink: #10151b;
  --reset-muted: #5b6672;
  --reset-teal: #13c2b0;
  --reset-teal-deep: #0e9c8e;
  --reset-surface: #ffffff;
  --reset-bg: #f5f7f8;
  --reset-line: #e2e8ec;
}

body[data-variant='reset_v1'],
body[data-variant='faq_v1'] {
  margin: 0;
  background: var(--reset-bg);
  color: var(--reset-ink);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.reset-main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
  /* Keeps the crisis panel below the fold. It must always be reachable, but it
     should not sit under the breathing circle competing with a calm moment. */
  min-height: calc(100vh - 7.5rem);
  box-sizing: border-box;
}

/* One step visible at a time. */
.step {
  display: none;
  /* Clears the fixed crisis pill when a step is scrolled into view. */
  scroll-margin-top: 4.5rem;
}
.step.is-active {
  display: block;
  animation: step-in 0.32s ease-out;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.step h1,
.step h2 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  outline: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--reset-teal-deep);
  margin: 0 0 0.5rem;
}

.lede {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--reset-muted);
  margin: 0 0 1.5rem;
}

.microcopy {
  font-size: 0.85rem;
  color: var(--reset-muted);
  margin-top: 1rem;
}

.why {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--reset-ink);
  background: var(--reset-surface);
  border-left: 3px solid var(--reset-teal);
  padding: 0.85rem 1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0;
}

button.primary,
a.primary {
  display: inline-block;
  background: var(--reset-teal);
  color: #04241f;
  border: none;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
button.primary:hover,
a.primary:hover {
  background: var(--reset-teal-deep);
  transform: translateY(-1px);
}
button.primary:focus-visible,
a.primary:focus-visible,
.choice:focus-visible {
  outline: 3px solid var(--reset-teal-deep);
  outline-offset: 3px;
}

button.ghost {
  display: block;
  margin: 1.5rem auto 0;
  background: none;
  border: none;
  color: var(--reset-muted);
  font-family: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.ghost-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--reset-muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------ breath stage */

.breath-stage {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 1.5rem;
}

.breath-circle {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #d9f5f1 65%, #b8ebe4 100%);
  border: 2px solid var(--reset-teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  /* Matches the 4s in / 8s out cadence the protocol teaches. */
  transition: transform 4s ease-in-out;
  transform: scale(0.72);
}
.breath-circle.is-inhale {
  transform: scale(1);
  transition-duration: 4s;
}
.breath-circle.is-exhale {
  transform: scale(0.72);
  transition-duration: 8s;
}

.breath-cue {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--reset-ink);
}
.breath-count {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--reset-teal-deep);
  line-height: 1;
}

.breath-progress {
  text-align: center;
  color: var(--reset-muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .breath-circle {
    transition: none;
    transform: scale(1);
  }
  .step.is-active {
    animation: none;
  }
}

/* ---------------------------------------------------------------- choices */

.choice-grid,
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.choice-grid {
  flex-direction: column;
}

.choice {
  background: var(--reset-surface);
  border: 2px solid var(--reset-line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--reset-ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover {
  border-color: var(--reset-teal);
}
.choice.is-chosen {
  border-color: var(--reset-teal);
  background: #e8faf7;
  font-weight: 700;
}

/* --------------------------------------------------------------- questions */

.safety-question,
.baseline-question {
  border: none;
  border-top: 1px solid var(--reset-line);
  padding: 1.35rem 0 0.5rem;
  margin: 0 0 1rem;
}
.safety-question legend,
.baseline-question legend {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
  padding: 0 0 0.85rem;
}

.scale-input {
  width: 100%;
  accent-color: var(--reset-teal);
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--reset-muted);
}
.scale-value {
  font-weight: 800;
  color: var(--reset-teal-deep);
}

.field {
  display: block;
  margin-bottom: 1.1rem;
}
.field span {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.field select,
.field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--reset-line);
  border-radius: 12px;
  background: var(--reset-surface);
  color: var(--reset-ink);
}
.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--reset-teal);
}

.exit-preview {
  background: var(--reset-surface);
  border: 2px dashed var(--reset-teal);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 1.25rem;
  min-height: 1.4em;
}

/* --------------------------------------------------------------- resources */

.resource-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.resource {
  background: var(--reset-surface);
  border: 1px solid var(--reset-line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.25rem;
}
.resource strong {
  font-size: 1.02rem;
}
.resource span {
  color: var(--reset-muted);
  font-size: 0.9rem;
}
.resource-contact {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--reset-teal-deep);
  text-decoration: none;
}

/* A safety route is not a sales screen. Nothing here competes for attention. */
.step-safety-route .lede {
  font-size: 1.1rem;
  color: var(--reset-ink);
}

.crisis-link {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 20;
  background: var(--reset-surface);
  border: 1px solid var(--reset-line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--reset-ink);
  text-decoration: none;
}
.crisis-link:hover {
  border-color: var(--reset-teal);
}

.crisis-panel {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--reset-line);
}
.crisis-panel h2 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.offer-block {
  background: var(--reset-surface);
  border: 1px solid var(--reset-line);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.75rem 0 0;
}
.offer-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}
.offer-block p {
  color: var(--reset-muted);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.source-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--reset-teal-deep);
  font-weight: 700;
  font-size: 0.92rem;
}

.reset-footer {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  color: var(--reset-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.reset-footer a {
  color: var(--reset-muted);
}

/* ------------------------------------------------------------------- faq */

.faq-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2rem;
}

.faq-header {
  margin-bottom: 2.5rem;
}
.faq-header h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.faq-section {
  margin-bottom: 2.5rem;
}
.faq-section h2 {
  font-size: 1.25rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--reset-line);
  /* styles.css caps heading width for prose; section rules need the full column. */
  max-width: none;
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid var(--reset-line);
}
.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.45;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  color: var(--reset-teal-deep);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item summary:hover {
  color: var(--reset-teal-deep);
}
.faq-answer {
  padding: 0 0 1.1rem;
}
.faq-answer p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  color: var(--reset-muted);
}
.faq-answer a {
  color: var(--reset-teal-deep);
}

.faq-cta {
  background: var(--reset-surface);
  border: 1px solid var(--reset-line);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 1rem;
}
.faq-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}
.faq-cta p {
  color: var(--reset-muted);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.resource-text,
.resource-hours {
  font-size: 0.9rem;
  color: var(--reset-ink);
  font-weight: 600;
}
.resource-hours {
  color: var(--reset-muted);
  font-weight: 400;
}
