/*
 * Thena Life Assessment Styles
 * Design principles: Relief, Energy, Safety, Agency
 * Not chaotic, loud, or preachy. Clear strategy and momentum.
 */

:root {
  --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;

  /* Core brand colors - warm, grounded, purposeful */
  --color-primary: #1a1209;
  --color-primary-light: #2e1f0a;
  --color-primary-dark: #0e0904;
  --color-accent: #c4922a;
  --color-accent-light: #d4a84a;
  --color-relevance: #c4922a;
  --color-satisfaction: #5a9e72;
  --color-time-energy: #5b8db8;

  /* Neutrals */
  --color-text: #1a1209;
  --color-text-light: #5c4f3a;
  --color-text-muted: #9c8e7a;
  --color-bg: #ede8db;
  --color-bg-warm: #f5f1e8;
  --color-white: #ffffff;
  --color-border: #d8d0c0;
  --color-border-light: #e8e2d4;

  /* Shadows - subtle, grounded */
  --shadow-sm: 0 1px 3px rgba(26, 18, 9, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 18, 9, 0.08);
  --shadow-lg: 0 8px 28px rgba(26, 18, 9, 0.12);

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ─── Home Page ─── */
.home-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.home-brand {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.home-h1 {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1.08;
  color: var(--color-text);
  margin: 0 0 24px;
  font-weight: 700;
}

.home-subtitle {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0 0 16px;
  font-weight: 400;
}

.home-subtitle .hl {
  color: var(--color-accent);
}

.home-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 48px;
  letter-spacing: 0.3px;
}

.home-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 32px;
  width: 100%;
  text-align: left;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.home-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 16px;
}

.home-dimensions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-dimensions li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.4;
}

.dim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-relevance  { background: var(--color-relevance); }
.dot-satisfaction { background: var(--color-satisfaction); }
.dot-time       { background: var(--color-time-energy); }

.home-wrap form {
  width: 100%;
}

.home-email-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
  background: #fff;
  outline: none;
  display: block;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.home-email-input:focus {
  border-color: var(--color-accent);
}

.home-email-input::placeholder {
  color: var(--color-text-muted);
}

.home-submit {
  display: block;
  width: 100%;
  padding: 15px 24px;
  background: #5a5248;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.home-submit:hover:not(:disabled) {
  background: #3d3530;
}

.home-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .home-h1 {
    font-size: 38px;
  }

  .home-card {
    padding: 20px 20px;
  }

}

/* Assessment Progress Bar */
.progress-bar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg-warm);
  border-bottom: 1px solid var(--color-border-light);
  padding: 0.6rem 1.5rem;
}

.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 820px;
  margin: 0 auto;
}

.progress-bar-track {
  flex: 1;
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.progress-bar-pct {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  min-width: 2.5rem;
  text-align: right;
}

/* Hero Section */
.hero {
  background: var(--color-bg);
  padding: 5rem 2rem 2rem;
  text-align: center;
}

.assessment-page .hero {
  padding-top: 4rem;
}

.hero-content {
  max-width: 560px;
  margin: 0 auto;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0 0 1rem 0;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 0 0 1rem 0;
  font-weight: 400;
  line-height: 1.65;
}

.hero-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
  letter-spacing: 0.01em;
}

/* Main Container */
.assessment-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Intro Section */
.intro-section {
  max-width: 560px;
  margin: 0 auto 3rem;
}

.dimensions-explainer {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-md);
}

.dimensions-explainer p {
  margin: 0 0 0.85rem 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.dimensions-explainer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dimensions-explainer li {
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding-left: 16px;
}

.dimensions-explainer li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dimensions-explainer li:nth-child(1)::before {
  background: var(--color-relevance);
}

.dimensions-explainer li:nth-child(2)::before {
  background: var(--color-satisfaction);
}

.dimensions-explainer li:nth-child(3)::before {
  background: var(--color-time-energy);
}

.intro-text {
  font-size: 1.2rem;
  color: var(--color-text);
  line-height: 1.8;
  margin: 0 0 2.5rem 0;
  text-align: center;
}

/* Instructions */
.instructions {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}

.instructions h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1.5rem 0;
}

.instruction-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.instruction-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0 1rem 3.5rem;
  position: relative;
  border-bottom: 1px solid var(--color-border-light);
}

.instruction-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.instruction-list li:first-child {
  padding-top: 0;
}

.instruction-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.instruction-list li:first-child::before {
  top: 0;
}

.instruction-list li strong {
  font-weight: 600;
  color: var(--color-text);
}

.instruction-list li span {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Scale Guide */
.scale-guide {
  margin-bottom: 2.5rem;
}

.scale-guide h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1rem 0;
  text-align: center;
}

.scale-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.scale-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.scale-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.5rem 0;
}

.scale-question {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0 0 0.75rem 0;
  font-style: italic;
}

.scale-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scale-card li {
  font-size: 0.85rem;
  color: var(--color-text);
  padding: 0.35rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.scale-range {
  font-weight: 600;
  color: var(--color-accent);
  min-width: 2.5rem;
}

/* Registration Form */
.registration-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Waiting Page */
.waiting-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 2rem;
}

.waiting-page h1 {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 400;
  color: var(--color-text);
  margin: 0.75rem 0 1.25rem;
  line-height: 1.15;
}

.waiting-message {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin: 0 0 3rem;
  line-height: 1.65;
}

.waiting-expect {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.waiting-expect-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

.expect-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
  width: 100%;
}

.expect-list li {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Client-side validation banner */
.client-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  color: #991b1b;
  font-size: 0.9rem;
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.dim-slider-wrap--invalid .rating-slider {
  outline: 2px solid #dc2626;
  outline-offset: 4px;
  border-radius: 2px;
}

.time-select.field-invalid {
  border-color: #dc2626;
  color: #dc2626;
}

/* Error Messages */
.error-messages {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.error-messages p {
  color: #dc2626;
  margin: 0;
  font-size: 0.95rem;
}

/* Email Section */
.email-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}

.email-section label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.field-hint {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem 0;
}

.email-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--color-bg-warm);
}

.email-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

/* Quick Fill (testing only) */
.quick-fill-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.quick-fill-btn {
  background: transparent;
  border: 1px dashed var(--color-border);
  color: var(--color-text-light);
  font-size: 0.78rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}

.quick-fill-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ─── Category Sections ─── */
.category-section {
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-left: 3px solid #7c5cbf;
  background: var(--color-white);
}

.category-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: var(--color-white);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.category-header:hover {
  background: var(--color-bg-warm);
}

.category-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.category-diamond {
  color: #7c5cbf;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.category-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.category-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-counter {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.toggle-icon {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  transition: transform 0.2s;
  line-height: 1;
}

.toggle-icon.rotated {
  transform: rotate(180deg);
}

/* Category content — expanded by default */
.category-content {
  display: none;
  border-top: 1px solid var(--color-border-light);
}

.category-content.expanded {
  display: block;
}

/* ─── Dimension Table ─── */
.dim-table-header,
.dim-row {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 140px;
  align-items: center;
}

.dim-table-header {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg);
}

.dim-table-header > div {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.dim-table-header .col-slider,
.dim-table-header .col-time {
  padding-left: 0.75rem;
}

.dim-row {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border-light);
  gap: 0;
}

.dim-row:last-child {
  border-bottom: none;
}

.dim-area {
  padding-right: 1.25rem;
}

.dim-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.2rem 0;
}

.dim-desc {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.4;
}

/* ─── Sliders ─── */
.dim-slider-wrap {
  padding: 0 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 4px;
}

.slider-value {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 1.25rem;
  text-align: right;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.slider-numeric-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--color-text-muted);
  margin-bottom: 2px;
  padding-right: calc(1.25rem + 0.5rem);
}

.rating-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #d8d0c0;
  outline: none;
  cursor: pointer;
}

/* Untouched thumb — gray */
.rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a89e8c;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: background 0.15s;
}

.rating-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a89e8c;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: background 0.15s;
}

/* Touched — relevance (purple) */
.dim-slider-wrap--touched .slider--relevance::-webkit-slider-thumb {
  background: #7c5cbf;
}

.dim-slider-wrap--touched .slider--relevance::-moz-range-thumb {
  background: #7c5cbf;
}

/* Touched — satisfaction (green) */
.dim-slider-wrap--touched .slider--satisfaction::-webkit-slider-thumb {
  background: #4a7c59;
}

.dim-slider-wrap--touched .slider--satisfaction::-moz-range-thumb {
  background: #4a7c59;
}

.slider-tick-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--color-text-muted);
  padding-right: calc(1.25rem + 0.5rem);
}

/* Time & Energy Dropdown */
.dim-time {
  padding-left: 0.75rem;
}

.time-select {
  width: 100%;
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.8rem;
  cursor: pointer;
  appearance: auto;
  transition: border-color 0.12s;
}

.time-select:focus {
  outline: none;
  border-color: #7c5cbf;
}

@media (max-width: 700px) {
  .dim-table-header {
    display: none;
  }

  .dim-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .dim-slider-wrap,
  .dim-time {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Submit Section */
.submit-section {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1rem;
}

.submit-button {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-md);
  letter-spacing: 0.01em;
}

.submit-button:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Results Page Styles */
.results-page {
  min-height: 100vh;
  background: #F5F0E8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
}

.results-card {
  background: #FDFAF5;
  border-radius: 16px;
  max-width: 960px;
  width: 100%;
  padding: 48px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
}

.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-body {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.results-left {
  flex: 0 0 35%;
}

.results-brand {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #D4703A;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.results-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  color: #2C2C2C;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 28px;
}

.results-score-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2C2C2C;
  margin: 0 0 6px;
}

.results-score-subtitle {
  font-size: 12px;
  color: #888;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 20px;
  line-height: 1.5;
}

.results-score-number {
  font-family: var(--font-serif);
  font-size: 80px;
  font-weight: 700;
  color: #2C2C2C;
  line-height: 1;
  margin: 0 0 28px;
}

.results-scale-heading {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2C2C2C;
  margin: 0 0 14px;
}

.results-scale {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}

.results-scale-item {
  font-size: 13px;
  color: #444;
  line-height: 1.4;
}

.results-scale-range {
  font-weight: 500;
  color: #2C2C2C;
}

.results-goal-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: #666;
  line-height: 1.55;
  margin: 0 0 28px;
}

.results-cta-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: #2C2C2C;
  color: #F5F0E8;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease;
}

.results-cta-btn:hover {
  background: #D4703A;
}

.results-right {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #EEEBE3;
}

.results-outer {
  max-width: 960px;
  width: 100%;
  margin-top: 24px;
}

@media (max-width: 700px) {
  .results-page {
    padding: 20px 16px;
  }

  .results-card {
    padding: 28px 20px;
  }

  .results-body {
    flex-direction: column;
    gap: 28px;
  }

  .results-left,
  .results-right {
    flex: none;
    width: 100%;
  }

  .results-right {
    padding: 12px 8px;
  }

  .results-title {
    font-size: 28px;
  }

  .results-score-number {
    font-size: 60px;
  }
}

.how-to-read-btn {
  background: transparent;
  border: 1px solid #D9D9D9;
  border-radius: 50px;
  padding: 8px 22px;
  font-size: 12px;
  color: #5a5a5a;
  cursor: pointer;
  font-weight: 500;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s;
}

.how-to-read-btn:hover {
  border-color: #e5866b;
}

/* How to Read Modal */
.htr-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
  z-index: 200;
}

.htr-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 201;
  background: #faf7f2;
  border-radius: 20px;
  padding: 36px 36px 32px;
  max-width: 500px;
  width: calc(100% - 48px);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

.htr-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: #8a8a8a;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.htr-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #e5866b;
  font-weight: 700;
  margin: 0 0 10px;
}

.htr-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: #2a2a2a;
  font-weight: 400;
  margin: 0 0 20px;
}

.htr-quadrants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.htr-quad {
  border-radius: 12px;
  padding: 14px 16px;
}

.htr-quad-direction {
  display: block;
  font-size: 10px;
  color: #8a8a8a;
  margin-bottom: 4px;
}

.htr-quad strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}

.htr-quad p {
  font-size: 12px;
  color: #5a5a5a;
  line-height: 1.5;
  margin: 0;
}

.htr-quad--urgent    { background: rgba(229,134,107,0.09); border: 1px solid rgba(229,134,107,0.25); }
.htr-quad--urgent strong { color: #e5866b; }
.htr-quad--working   { background: rgba(71,128,96,0.08);  border: 1px solid rgba(71,128,96,0.2); }
.htr-quad--working strong { color: #478060; }
.htr-quad--consider  { background: rgba(217,217,217,0.4); border: 1px solid #D9D9D9; }
.htr-quad--consider strong { color: #8a8a8a; }
.htr-quad--background { background: rgba(194,221,248,0.15); border: 1px solid rgba(194,221,248,0.5); }
.htr-quad--background strong { color: #6a9fc0; }

.htr-axes-text {
  font-size: 12px;
  color: #5a5a5a;
  line-height: 1.6;
  margin: 0 0 16px;
}

.htr-footnote {
  font-size: 12px;
  color: #5a5a5a;
  line-height: 1.6;
  margin: 0 0 24px;
}

.htr-got-it {
  width: 100%;
  background: #2a2a2a;
  color: #eee7d6;
  border: none;
  border-radius: 50px;
  padding: 13px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s;
}

.htr-got-it:hover {
  background: #e5866b;
}

/* Chart tabs */
.chart-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: #D9D9D9;
  border-radius: 50px;
  padding: 3px;
  max-width: 200px;
  margin: 0 auto 20px;
}

.chart-tab {
  flex: 1;
  padding: 8px 20px;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s;
}

.chart-tab--active {
  background: #fff;
  color: #2a2a2a;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.results-right .chart-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

/* Chart Section */
.chart-section {
  background: #fff;
  border: 1px solid #D9D9D9;
  border-radius: 20px;
  padding: 24px 12px 20px;
  margin-bottom: 24px;
}

.chart-header {
  text-align: center;
  margin-bottom: 1rem;
}

.chart-header h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #2a2a2a;
  font-weight: 400;
  margin: 0 0 6px;
}

.chart-description {
  font-size: 13px;
  color: #8a8a8a;
  margin: 0 auto;
  max-width: 420px;
  line-height: 1.5;
}

.chart-wrapper {
  position: relative;
}

.chart-divider {
  height: 1px;
  background: #eee7d6;
  margin: 12px 20px;
}

.chart-legend-guide {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #5a5a5a;
}

.legend-icon {
  background: #8a8a8a;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-icon.size-small {
  width: 10px;
  height: 10px;
}

.legend-icon.size-large {
  width: 20px;
  height: 20px;
}

.chart-hover-hint {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 0.4rem 0 0;
}

.chart-color-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0.75rem 1rem 0.25rem;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #5a5a5a;
}

.chart-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.chart-axis-labels {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.chart-axis-labels span {
  font-size: 10px;
  color: #8a8a8a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Insights Section */
.insights-section {
  margin-bottom: 24px;
}

.insights-section h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #2a2a2a;
  font-weight: 400;
  text-align: center;
  margin: 0 0 16px;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.category-result-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #e8e2d8;
  border-left: 4px solid var(--category-color);
}

.category-result-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2a2a2a;
  margin: 0 0 0.75rem 0;
}

.scores {
  display: flex;
  gap: 1rem;
}

.score {
  flex: 1;
  text-align: center;
}

.score-label {
  display: block;
  font-size: 0.7rem;
  color: #8a8a8a;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2a2a2a;
}

/* Next Steps Section */
.next-steps-section {
  background: #2a2a2a;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.next-steps-text h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #eee7d6;
  font-weight: 400;
  margin: 0 0 6px;
  line-height: 1.4;
}

.next-steps-text p {
  font-size: 12px;
  color: #8a8a8a;
  margin: 0;
  max-width: 340px;
  line-height: 1.6;
}

.action-buttons {
  flex-shrink: 0;
}

.button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.button-secondary {
  background: #e5866b;
  color: #fff;
}

.button-secondary:hover {
  background: #cf6e50;
}

@media (max-width: 540px) {
  .next-steps-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Flash Messages */
.flash {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  animation: flash-in 0.3s ease;
}

.flash--notice {
  background: var(--color-accent);
  color: #fff;
}

.flash--alert {
  background: #c0392b;
  color: #fff;
}

@keyframes flash-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Facilitator Page */
.facilitator-page {
  min-height: 100vh;
  background: var(--color-bg);
}

.facilitator-header {
  background: #1E1E1E;
  padding: 48px 56px 40px;
}

.facilitator-header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.facilitator-label {
  font-size: 11px;
  letter-spacing: 5px;
  color: #4A7C59;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.facilitator-header h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}

.facilitator-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.new-session-form {
  margin-bottom: 1.75rem;
}

.new-session-row {
  display: flex;
  gap: 0.75rem;
}

.new-session-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  outline: none;
  transition: border-color 0.2s;
}

.new-session-input:focus {
  border-color: #4A7C59;
}

.new-session-btn {
  padding: 0.75rem 1.5rem;
  background: #1E1E1E;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.new-session-btn:hover {
  background: #4A7C59;
}

.facilitator-empty {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  color: var(--color-text-muted);
  font-size: 1rem;
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.session-row {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.session-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.session-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.session-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.session-row-url {
  overflow: hidden;
}

.session-url {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.session-url:hover {
  color: #4A7C59;
}

.session-url code {
  font-family: monospace;
  font-size: inherit;
}

.session-row-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.unlock-btn {
  padding: 0.4rem 0;
  width: 8rem;
  text-align: center;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.unlock-btn--all {
  background: #4A7C59;
  color: #fff;
}

.unlock-btn--all:hover {
  background: #3a6347;
}

.unlock-btn--single {
  background: var(--color-bg);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

.unlock-btn--single:hover {
  background: #4A7C59;
  color: #fff;
  border-color: #4A7C59;
}

.unlock-btn--lock {
  background: var(--color-bg);
  color: #c0392b;
  border: 1px solid #e0b0ab;
}

.unlock-btn--lock:hover {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

.unlock-btn--delete {
  background: var(--color-bg);
  color: #c0392b;
  border: 1px solid #e0b0ab;
}

.unlock-btn--delete:hover {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

.participant-email {
  flex: 1;
}

.participant-progress {
  min-width: 7rem;
}

.participant-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 16.5rem;
  flex-shrink: 0;
}

.session-participant--header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.4rem;
  margin-bottom: 0.25rem;
  pointer-events: none;
}


.waiting-go-btn {
  display: none;
}

.session-participants-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.session-no-participants {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  font-style: italic;
}

.session-participants {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.session-participant {
  font-size: 0.9rem;
  color: var(--color-text);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.session-participant:last-child {
  border-bottom: none;
}

@media (max-width: 640px) {
  .facilitator-header {
    padding: 36px 24px 28px;
  }

  .facilitator-header h1 {
    font-size: 30px;
  }

  .session-row-header {
    flex-wrap: wrap;
  }
}

/* Responsive Design */
@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 1.5rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .assessment-container {
    padding: 1.5rem 1rem 2rem;
  }

  .submit-button {
    width: 100%;
    padding: 1rem;
  }

  .htr-modal {
    width: calc(100% - 32px);
    padding: 28px 20px 24px;
  }

  /* Results page responsive */
  .results-header h1 {
    font-size: 30px;
  }


  .category-cards {
    grid-template-columns: 1fr;
  }

  .score-value {
    font-size: 1.1rem;
  }
}
