/* ===================================================================
   Wheel of Wellness — Shared Design System
   Based on HELPipedia / SpecialNeeds.help brand identity
   "Practical" renamed to "Daily Life" per stakeholder feedback (4th-grade reading level)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #2E7D6F;
  --primary-dark: #1F5C52;
  --primary-light: #3A9A88;
  --secondary: #E8835C;
  --secondary-light: #F0A080;
  --cream: #FFF8F0;
  --charcoal: #2D3436;
  --gray-100: #F7F7F7;
  --gray-200: #E8E8E8;
  --gray-300: #D1D1D1;
  --gray-400: #9E9E9E;
  --gray-500: #6B6B6B;
  --green: #4CAF50;
  --green-light: #E8F5E9;
  --yellow: #FFC107;
  --yellow-light: #FFF8E1;
  --orange: #FF9800;
  --orange-light: #FFF3E0;
  --red: #E85C4A;
  --red-light: #FFEBEE;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #E8E0D8;
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 1056px;
  height: 816px;
  background: var(--cream);
  margin: 30px auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-radius: 4px;
  page-break-after: always;
  page-break-inside: avoid;
}

/* ── Browser Chrome Frame ──────────────────── */
.browser-frame {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 84px;
  background: #E8E0D8;
  z-index: 10;
  border-bottom: 1px solid #D0C8C0;
}
.browser-dots {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
}
.browser-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.browser-dot.red { background: #FF5F56; }
.browser-dot.yellow { background: #FFBD2E; }
.browser-dot.green { background: #27CA40; }
.browser-url-bar {
  margin: 0 16px;
  background: white;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--gray-400);
  border: 1px solid #D0C8C0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.browser-url-bar .lock { color: var(--primary); font-size: 11px; }
.browser-url-bar span { color: var(--charcoal); font-weight: 500; }

/* ── App Content ────────────────────────────── */
.app-content {
  position: absolute;
  top: 84px;
  left: 0; right: 0; bottom: 0;
  overflow: hidden;
  background: var(--cream);
}

.app-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}
.app-header .brand { display: flex; align-items: center; gap: 10px; }
.app-header .logo-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.app-header .brand-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.app-header .brand-text .divider {
  opacity: 0.5;
  margin: 0 6px;
  font-weight: 400;
}
.app-header .brand-text .sub {
  font-weight: 400;
  opacity: 0.85;
}
.app-header .nav-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}
.app-header .nav-links a {
  color: white;
  text-decoration: none;
  padding: 4px 0;
}
.app-header .nav-links a.active {
  border-bottom: 2px solid rgba(255,255,255,0.7);
}

.app-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.app-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.app-footer .footer-divider {
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
}

/* ── Landing Page (Hero) ───────────────────── */
.page1-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 60px 50px;
  height: 100%;
}
.page1-hero .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}
.page1-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.15;
  margin-bottom: 10px;
}
.page1-hero .subtitle {
  font-size: 17px;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 14px;
}
.page1-hero .intro {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 28px;
}

.wheel-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin-bottom: 28px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--secondary) 0%, #D06A42 100%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232,131,92,0.35);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.cta-button:hover { transform: translateY(-1px); }
.cta-button .arrow { font-size: 20px; }
.cta-subtext {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 10px;
}

.feature-pills {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}
.feature-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11.5px;
  color: var(--gray-500);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.feature-pill .icon { font-size: 14px; }

/* ── Questions Page ────────────────────────── */
.questions-page {
  padding: 20px 40px 50px;
  height: 100%;
  overflow: hidden;
}

.progress-section { margin-bottom: 16px; }
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.progress-header .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.progress-header .count {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}
.progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  width: 15%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 4px;
}

.dimension-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.dim-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}
.dim-badge.physical { background: #E3F2FD; color: #1565C0; }
.dim-badge.emotional { background: #F3E5F5; color: #7B1FA2; }
.dim-badge.social { background: #E8F5E9; color: #2E7D32; }
.dim-badge.daily-life { background: #FFF3E0; color: #E65100; }
.dim-badge.purpose { background: #FFF8E1; color: #F57F17; }
.dim-badge.growth { background: #FFEBEE; color: #C62828; }

/* Question cards */
.question-card {
  background: white;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: relative;
}
.question-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
}
.question-card.q-physical::before { background: #1565C0; }
.question-card.q-emotional::before { background: #7B1FA2; }
.question-card.q-social::before { background: #2E7D32; }
.question-card.q-daily-life::before { background: #E65100; }
.question-card.q-purpose::before { background: #F57F17; }
.question-card.q-growth::before { background: #C62828; }

.question-card .q-dim-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.question-card.q-physical .q-dim-label { color: #1565C0; }
.question-card.q-emotional .q-dim-label { color: #7B1FA2; }
.question-card.q-social .q-dim-label { color: #2E7D32; }
.question-card.q-daily-life .q-dim-label { color: #E65100; }
.question-card.q-purpose .q-dim-label { color: #F57F17; }
.question-card.q-growth .q-dim-label { color: #C62828; }

.question-card .q-text {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
  line-height: 1.4;
}
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--gray-500);
  transition: all 0.15s;
}
.option-item.selected {
  background: #E8F5E9;
  border-color: var(--primary);
  color: var(--primary-dark);
}
.radio-circle {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-item.selected .radio-circle {
  border-color: var(--primary);
  background: var(--primary);
}
.option-item.selected .radio-circle::after {
  content: '';
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
}
.question-number {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 11px;
  color: var(--gray-300);
  font-weight: 600;
}

/* ── Results Page ──────────────────────────── */
.results-page {
  padding: 20px 40px 50px;
  height: 100%;
  overflow: hidden;
}
.results-header {
  text-align: center;
  margin-bottom: 20px;
}
.results-header .completion-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 16px;
  margin-bottom: 8px;
}
.results-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.results-header .summary {
  font-size: 13px;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

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

.results-wheel {
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  position: relative;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}
.dim-card {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.dim-card .dim-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.dim-card .dim-card-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dim-card .dim-card-name .dim-icon { font-size: 16px; }
.status-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}
.status-badge.strong { background: var(--green-light); color: var(--green); }
.status-badge.moderate { background: var(--yellow-light); color: #F9A825; }
.status-badge.needs-attention { background: var(--red-light); color: var(--red); }
.dim-card .score-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  margin-bottom: 6px;
  overflow: hidden;
}
.dim-card .score-fill { height: 100%; border-radius: 3px; }
.dim-card .score-fill.green { background: var(--green); }
.dim-card .score-fill.yellow { background: var(--yellow); }
.dim-card .score-fill.orange { background: var(--orange); }
.dim-card .score-fill.red { background: var(--red); }
.dim-card .dim-score {
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 4px;
  font-weight: 500;
}
.dim-card .dim-desc {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* Overall score banner */
.overall-banner {
  background: white;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: center;
  margin-bottom: 16px;
}
.overall-banner .overall-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.overall-banner .overall-score {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}
.overall-banner .overall-score span {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 500;
}
.overall-banner .overall-text {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

.results-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}
.btn-outline {
  padding: 10px 24px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* ── Resources Page ────────────────────────── */
.resources-page {
  padding: 20px 40px 50px;
  height: 100%;
  overflow: hidden;
}
.resources-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
  background: white;
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.resources-header .score-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--red-light);
  border: 3px solid var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resources-header .score-circle .score-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.resources-header .score-circle .score-label {
  font-size: 8px;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.resources-header .header-text h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.resources-header .header-text p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}
.resources-header .header-text .what-this-means {
  font-size: 12px;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 4px;
}

.resources-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.resource-card {
  background: white;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}
.resource-card .resource-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
}
.resource-card .resource-icon.ri1 { background: #E3F2FD; }
.resource-card .resource-icon.ri2 { background: #F3E5F5; }
.resource-card .resource-icon.ri3 { background: #E8F5E9; }
.resource-card .resource-icon.ri4 { background: #FFF3E0; }
.resource-card .resource-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.resource-card .resource-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}
.resource-card .resource-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.resource-card .resource-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(46,125,111,0.08);
  padding: 3px 10px;
  border-radius: 10px;
}
.learn-more-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 6px;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.learn-more-btn:hover { background: rgba(46,125,111,0.06); }

.mentor-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  margin-bottom: 12px;
}
.mentor-cta .cta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mentor-cta .cta-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.mentor-cta .cta-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.mentor-cta .cta-text p {
  font-size: 12px;
  opacity: 0.8;
}
.mentor-cta .cta-btn {
  background: white;
  color: var(--primary-dark);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 8px 0;
}
.utility-link {
  font-size: 12px;
  color: var(--gray-400);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.utility-link:hover { color: var(--primary); }

.screen-indicator {
  position: absolute;
  top: 90px;
  right: 16px;
  font-size: 9px;
  color: var(--gray-300);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

@media print {
  body { background: white; }
  .page { margin: 0; box-shadow: none; }
}
