:root {
  --bg: #f2efe6;
  --bg-accent: #dcebd8;
  --card: rgba(255, 252, 247, 0.9);
  --ink: #1f2a24;
  --muted: #5e6c62;
  --line: rgba(31, 42, 36, 0.12);
  --primary: #0d6b57;
  --primary-strong: #0a5545;
  --secondary: #fffaf1;
  --warm: #f0a84f;
  --danger: #b74d3a;
  --shadow: 0 24px 60px rgba(22, 34, 27, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 168, 79, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(13, 107, 87, 0.22), transparent 26%),
    linear-gradient(160deg, var(--bg) 0%, #edf4ea 45%, var(--bg-accent) 100%);
}

.app-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.site-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.75rem 1rem 0;
}

.hero {
  margin-bottom: 1.5rem;
}

.hero.hidden {
  display: none;
}

.eyebrow,
.step-label,
.set-chip,
.metric span,
.doc-stat span {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

.eyebrow {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
}

.step-label,
.set-chip,
.metric span,
.doc-stat span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1,
.section-heading h2 {
  margin: 0.25rem 0 0.5rem;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
  line-height: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.hero-copy {
  width: min(720px, 100%);
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.section-heading,
.documentation-actions,
.session-topbar,
.button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
}

.field span,
.toggle-title,
.summary-card span {
  font-size: 0.92rem;
}

input[type="range"],
select,
button,
textarea {
  font: Avenir Next Condensed;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.95rem 1rem;
  border-radius: 18px;
  color: var(--ink);
}

.range-wrap,
.toggle-card,
.summary-card,
.metric,
.doc-stat,
.rating-button {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.range-wrap {
  padding: 1rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.range-wrap strong {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.2rem;
  color: var(--primary-strong);
}

.toggle-card {
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.toggle-card p,
.summary-card p,
.countdown-summary,
.session-instructions p,
.rating-visual p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.toggle-card input {
  width: 1.4rem;
  height: 1.4rem;
  accent-color: var(--primary);
}

.summary-card {
  padding: 1rem 1.1rem;
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, opacity 140ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.primary {
  background: var(--primary);
  color: white;
}

.secondary {
  background: var(--secondary);
  color: var(--ink);
  border: 1px solid var(--line);
}

.center {
  justify-content: center;
}

.countdown-screen {
  text-align: center;
  min-height: 65vh;
  display: none;
  place-items: center;
}

.countdown-screen.active {
  display: grid;
}

.countdown-number {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
  font-size: clamp(6rem, 18vw, 12rem);
  line-height: 0.9;
  color: var(--primary-strong);
}

.exercise-screen {
  min-height: 82vh;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.exercise-screen.active {
  display: flex;
}

.session-topbar {
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
}

.metric,
.doc-stat {
  padding: 0.4rem 0.8rem;
  display: grid;
}

.metric strong,
.doc-stat strong {
  font-size: 1.35rem;
}

.target-stage {
  flex: 1;
  min-height: 420px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(220, 235, 216, 0.4)),
    repeating-linear-gradient(
      0deg,
      rgba(31, 42, 36, 0.04),
      rgba(31, 42, 36, 0.04) 1px,
      transparent 1px,
      transparent 48px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(31, 42, 36, 0.04),
      rgba(31, 42, 36, 0.04) 1px,
      transparent 1px,
      transparent 48px
    );
}

.target-ring,
.target-center {
  position: absolute;
  border-radius: 999px;
}

.ring-outer {
  width: 240px;
  height: 240px;
  border: 8px solid rgba(13, 107, 87, 0.18);
}

.ring-middle {
  width: 140px;
  height: 140px;
  border: 10px solid rgba(240, 168, 79, 0.46);
}

.ring-inner {
  width: 56px;
  height: 56px;
  background: white;
  border: 8px solid var(--primary);
  box-shadow: 0 0 0 20px rgba(13, 107, 87, 0.12);
}

.target-center {
  width: 18px;
  height: 18px;
  background: var(--danger);
  box-shadow: 0 0 0 10px rgba(183, 77, 58, 0.15);
}

.session-instructions {
  text-align: center;
}

#instruction-line {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--ink);
}

.rating-visual {
  text-align: center;
  margin: 1.25rem 0 1rem;
}

.selected-rating {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1;
  color: var(--primary-strong);
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.rating-button {
  min-height: 84px;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.rating-button.selected {
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 16px 28px rgba(13, 107, 87, 0.2);
  transform: translateY(-2px);
}

.linear-scale {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 22px;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.scale-bar {
  height: 10px;
  border-radius: 999px;
  flex: 1;
  background: linear-gradient(90deg, #2cb67d 0%, #ffd166 50%, #ef476f 100%);
}

textarea {
  width: 100%;
  min-height: 360px;
  margin-top: 1rem;
  resize: vertical;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 1rem, 1100px);
    padding-top: 1rem;
  }

  .two-up,
  .three-up {
    grid-template-columns: 1fr;
  }

  .rating-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .section-heading,
  .documentation-actions,
  .button-row,
  .session-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .target-stage {
    min-height: 320px;
  }

  .ring-outer {
    width: 190px;
    height: 190px;
  }

  .ring-middle {
    width: 120px;
    height: 120px;
  }
}
