:root {
  --navy: #0c1b33;
  --sky: #f2f5ff;
  --blue: #0c64fb;
  --text: #1d2a44;
  --muted: #5f6b85;
  --shadow: 0 25px 60px rgba(13, 41, 80, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #f3f7ff 0%, #fefeff 60%, #f5f7fb 100%);
  color: var(--text);
  line-height: 1.6;
}

/* Embedded page mode (used inside admin.html iframe) */
html.embedded .site-header {
  display: none !important;
}

html.embedded main.page {
  min-height: auto;
}

html.embedded body {
  background: #ffffff;
}

html.embedded .auth-container {
  min-height: 100vh;
}

section[id] {
  scroll-margin-top: 60px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid rgba(12, 27, 51, 0.1);
  box-shadow: 0 2px 12px rgba(12, 27, 51, 0.08);
  padding: clamp(8px, 1vw, 12px) 0;
}

.header-content {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
  display: grid;
  /* Keep the middle title truly centered regardless of left/right widths */
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  /* Bottom-align all header content (logo/user/title/nav) */
  align-items: end;
  gap: clamp(12px, 2vw, 24px);
}

.header-left {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.6vw, 18px);
  flex-wrap: wrap;
  justify-self: start;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  color: var(--muted);
  line-height: 1;
  padding-bottom: 2px;
}

.header-user strong {
  font-weight: 700;
  color: var(--navy);
}

.header-user a {
  font-size: inherit;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  padding: 0 clamp(4px, 0.7vw, 8px);
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.header-user a:hover {
  background-color: rgba(244, 67, 54, 0.1);
  color: #b71c1c;
}

.header-center {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  justify-self: center;
}

.header-tagline {
  margin: 0;
  padding: 0;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

/* Top nav bar: logo + user info left, title center, right reserved */
.top-nav {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.top-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
}
.top-nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}
.top-nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}
.top-nav-user .sep {
  color: #cbd5e1;
  font-weight: 300;
  user-select: none;
}
.top-nav-user a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.top-nav-user a:hover { text-decoration: underline; }
.top-nav-center {
  justify-self: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.top-nav-right {
  justify-self: end;
}
.top-nav-right a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
.top-nav-right a:hover { text-decoration: underline; }

/* App shell: header + main column (agents bar + content) */
.app-wrap {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Main column: contains agents bar + content */
.main-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

/* Agents bar: single line across page, agent names wrap inside cards */
.agents-bar {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 20px;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px 12px;
  min-height: 0;
}
.agents-bar-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-right: 4px;
  flex-shrink: 0;
  align-self: center;
}
.agents-bar-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px 12px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.agent-card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  height: 44px;
  width: 160px;
  min-width: 160px;
  max-width: 160px;
  box-sizing: border-box;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  flex: 0 0 auto;
}
.agent-card-link:hover {
  background: #eff6ff;
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(12, 100, 251, 0.12);
}
.agent-card-link.active {
  background: #eff6ff;
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
}
.agent-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.agent-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.agent-card-link:hover .agent-card-icon,
.agent-card-link.active .agent-card-icon {
  background: rgba(12, 100, 251, 0.15);
}
.agent-card-phrase {
  line-height: 1.15;
  min-width: 0;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-size: 0.7rem;
}

/* Dashboard: cards below agents bar */
.dashboard-cards {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 24px;
  min-height: 0;
  overflow: auto;
}
@media (max-width: 900px) {
  .dashboard-cards { grid-template-columns: 1fr; }
}
.dashboard-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(12, 27, 51, 0.08);
  border: 1px solid rgba(12, 27, 51, 0.06);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  overflow: auto;
}
.dashboard-card h2 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.dashboard-card-content {
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Agent page: scrollable output tile, Ask this agent fixed at bottom */
.agent-page-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.agent-scrollable {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 24px;
  background: #f8fafc;
}
.agent-intents-section {
  flex-shrink: 0;
  margin-bottom: 16px;
}
.agent-intents-actions {
  margin-bottom: 12px;
}
.agent-action-btn {
  padding: 10px 18px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.agent-action-btn:hover {
  background: #1d4ed8;
}
.agent-intents-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.agent-intents-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.agent-intent-chip {
  padding: 8px 14px;
  background: #f0f4fb;
  border: 1px solid rgba(12, 27, 51, 0.12);
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.agent-intent-chip:hover {
  background: #e2eaf5;
  border-color: var(--blue);
}
.agent-intent-chip.active {
  background: #eff6ff;
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(12, 100, 251, 0.2);
}
.agent-intent-chip.active:hover {
  background: #e2eaf9;
}
.agent-chat-and-results {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 24px;
  gap: 16px;
}
/* Ask this agent: fixed at bottom of main column */
.agent-chat-compact {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 24px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.agent-chat-compact input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid rgba(12, 27, 51, 0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.agent-chat-compact button {
  padding: 10px 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}
.agent-chat-compact button:hover { background: #0a5ae0; }
.agent-results-area {
  min-height: 120px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
/* Shared chat result content inside agent-results-area */
.agent-results-area .chat-msg { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.agent-results-area .chat-msg.user { align-items: flex-end; }
.agent-results-area .chat-msg.user .chat-bubble { background: var(--blue); color: #fff; max-width: 85%; }
.agent-results-area .chat-bubble {
  padding: 12px 16px; border-radius: 12px; font-size: 0.95rem; line-height: 1.5; max-width: 100%;
}
.agent-results-area .chat-msg.assistant .chat-bubble {
  background: #f0f4fb; color: var(--navy); border: 1px solid rgba(12, 27, 51, 0.08);
}
.agent-results-area .chat-result {
  margin-top: 8px; padding: 14px 18px; background: #fff; border: 1px solid rgba(12, 27, 51, 0.12);
  border-radius: 12px; font-size: 0.95rem; white-space: pre-wrap; word-break: break-word;
}
.agent-results-area .chat-result-title { font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: 0.9rem; }
.agent-results-area .chat-result-intro { margin-bottom: 12px; color: var(--navy); }
.agent-results-area .chat-result-error { color: #b91c1c; }
.agent-results-area .chat-thinking {
  background: #f8fafc; border: 1px solid rgba(12, 27, 51, 0.1); border-radius: 12px;
  padding: 14px 18px; margin-top: 8px; font-size: 0.9rem; color: var(--muted);
}
.agent-results-area .chat-thinking-title { font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: 0.9rem; }
.agent-results-area .chat-thinking-summary { margin: 10px 0; }
.agent-results-area .chat-glucose-chart { margin: 16px 0; padding: 14px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.agent-results-area .chat-glucose-chart-title { font-weight: 600; color: var(--navy); margin-bottom: 10px; font-size: 0.9rem; }
.agent-results-area .chat-glucose-chart-container { position: relative; height: 220px; width: 100%; }
.agent-results-area .chat-glucose-chart-empty { font-size: 0.9rem; color: var(--muted); }
.agent-results-area .chat-analyses-intro { margin: 12px 0 12px; font-size: 0.9rem; color: var(--navy); font-weight: 500; }
.agent-results-area .chat-analyses-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  margin: 12px 0;
}
.agent-results-area .chat-analyses-steps.chat-analyses-steps-single {
  grid-template-columns: 1fr;
}
.agent-results-area .chat-analyses-steps.chat-analyses-steps-single {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}
.agent-results-area .chat-analyses-steps-single {
  grid-template-columns: 1fr;
}
.agent-results-area .chat-analyses-steps.chat-analyses-steps-single {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}
.agent-results-area .chat-analyses-steps-single {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}
.agent-results-area .chat-analyses-steps.chat-analyses-steps-single {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}
.agent-results-area .chat-analyses-steps.chat-analyses-steps-single {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}
.agent-results-area .chat-analyses-steps-single {
  grid-template-columns: 1fr;
}
/* Standalone preferences: hide nested "1. Meal plan analysis findings"; show card at Result level */
.agent-results-area .chat-analyses-steps.chat-preferences-mode { display: none; }
.agent-results-area .chat-preferences-standalone {
  margin-top: 16px; padding: 20px;
  background: linear-gradient(to bottom, #fafbfd, #fff);
  border: 1px solid #e2e8f0; border-radius: 14px;
  box-shadow: 0 2px 8px rgba(12, 27, 51, 0.06);
}
.agent-results-area .chat-preferences-standalone .meal-plan-stage-card {
  margin-top: 0; box-shadow: none; border-radius: 14px;
}

.agent-results-area .chat-analysis-block {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-height: 80px;
}
.agent-results-area .chat-analysis-block-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  min-height: 80px;
}
.agent-results-area .chat-analyses-step { font-size: 0.85rem; color: var(--navy); font-weight: 500; padding: 0 0 8px; margin-bottom: 4px; border-bottom: 1px solid #f1f5f9; }
/* Preferences card: standalone below Result (not nested in analysis block) */
.agent-results-area .chat-analyses-steps.chat-preferences-mode { display: none; }
.agent-results-area .chat-preferences-standalone {
  margin-top: 16px; padding: 20px;
  background: linear-gradient(to bottom, #fafbfd, #fff);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(12, 27, 51, 0.06);
}
.agent-results-area .chat-preferences-standalone .meal-plan-stage-card {
  margin-top: 0; box-shadow: none; border-radius: 14px;
}
.agent-results-area .chat-analysis-block .chat-result-tool { margin-top: 8px; margin-left: 0; border: none; background: transparent; padding: 0; }
.agent-results-area .chat-analysis-block .chat-result-tool-label { font-size: 0.8rem; margin-bottom: 4px; }
.agent-results-area .chat-analysis-block .chat-result-tool-content { font-size: 0.85rem; }
.agent-results-area .chat-status-line { margin-top: 12px; font-size: 0.9rem; color: var(--navy); font-weight: 500; }
.agent-results-area .chat-done-line { margin-top: 16px; font-weight: 600; color: var(--navy); }
.agent-results-area .chat-result-tools { display: flex; flex-direction: column; gap: 12px; }
.agent-results-area .chat-result-tool {
  padding: 12px 14px; background: #fff; border: 1px solid rgba(12, 27, 51, 0.08); border-radius: 10px;
}
.agent-results-area .chat-result-tool-failed { background: #fef2f2; border-color: rgba(185, 28, 28, 0.2); }
.agent-results-area .chat-result-tool-label { font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 0.9rem; }
.agent-results-area .chat-result-tool-content { font-size: 0.9rem; white-space: pre-wrap; word-break: break-word; color: var(--muted); }
.agent-results-area .chat-result-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.agent-results-area .chat-option-btn {
  padding: 8px 14px; font-size: 0.85rem; border: 1px solid rgba(12, 27, 51, 0.2); border-radius: 8px;
  background: #fff; color: var(--navy); cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.agent-results-area .chat-option-btn:hover { background: #f0f7ff; border-color: rgba(10, 90, 200, 0.3); }

/* Meal plan stage cards */
.agent-results-area .meal-plan-stage-card {
  margin-top: 16px; padding: 16px 18px;
  background: #fff; border: 1px solid rgba(12, 27, 51, 0.1); border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.agent-results-area .meal-plan-stage-label {
  font-weight: 600; font-size: 0.9rem; color: var(--navy);
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0;
}
.agent-results-area .meal-plan-preferences-summary {
  font-size: 0.9rem; line-height: 1.6; white-space: pre-wrap; color: var(--navy);
  margin-bottom: 14px; padding: 12px; background: #f8fafc; border-radius: 8px;
}
.agent-results-area .meal-plan-action-label {
  font-size: 0.9rem; font-weight: 500; color: var(--navy); margin-bottom: 10px;
}
.agent-results-area .meal-plan-prompt {
  font-size: 0.9rem; line-height: 1.5; color: var(--navy); margin-bottom: 12px;
}
.agent-results-area .meal-plan-free-text-hint {
  font-size: 0.85rem; color: var(--muted); font-style: italic; margin-top: 8px;
}
.agent-results-area .meal-plan-options {
  display: flex; flex-direction: column; gap: 8px;
}
.agent-results-area .meal-plan-option-label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 0.9rem; color: var(--navy); padding: 8px 10px;
  border-radius: 8px; transition: background 0.15s;
}
.agent-results-area .meal-plan-option-label:hover { background: #f1f5f9; }
.agent-results-area .meal-plan-option-label input { cursor: pointer; }
.agent-results-area .meal-plan-options-submit { margin-top: 14px; }
.agent-results-area .meal-plan-confirm-btn {
  padding: 10px 18px; font-size: 0.9rem; font-weight: 500;
  background: #2563eb; color: #fff; border: none; border-radius: 8px;
  cursor: pointer; transition: background 0.15s;
}
.agent-results-area .meal-plan-confirm-btn:hover { background: #1d4ed8; }
.agent-results-area .meal-plan-edit-btn {
  background: #fff; color: var(--navy); border: 1px solid rgba(12, 27, 51, 0.2);
}
.agent-results-area .meal-plan-edit-btn:hover { background: #f1f5f9; }
.agent-results-area .meal-plan-confirm-edit-btns {
  display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.agent-results-area .meal-plan-result-card .meal-plan-period {
  font-size: 0.85rem; color: var(--muted); margin-bottom: 14px;
}
.agent-results-area .meal-plan-day-card {
  margin-bottom: 14px; padding: 12px; background: #f8fafc; border-radius: 8px;
}
.agent-results-area .meal-plan-day-title {
  font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 8px;
}
.agent-results-area .meal-plan-slot {
  font-size: 0.85rem; color: var(--navy); margin-bottom: 4px;
}
.agent-results-area .meal-plan-slot-type {
  font-weight: 500; color: var(--muted); text-transform: capitalize;
}
.agent-results-area .meal-plan-more-days {
  font-size: 0.85rem; color: var(--muted); font-style: italic; margin-top: 8px;
}
.agent-results-area .meal-plan-more-days-clickable {
  cursor: pointer; font-style: normal; font-weight: 500; text-decoration: underline;
  color: var(--primary, #2563eb);
}
.agent-results-area .meal-plan-more-days-clickable:hover {
  color: var(--primary-dark, #1d4ed8);
}

/* Plan + meal events side-by-side */
.agent-results-area .meal-plan-with-events {
  display: flex; flex-direction: row; gap: 16px; flex-wrap: wrap;
}
.agent-results-area .meal-plan-left-card,
.agent-results-area .meal-plan-right-card {
  flex: 1; min-width: 280px;
}
.agent-results-area .meal-plan-events-card {
  /* inherits meal-plan-stage-card */
}
.agent-results-area .meal-plan-empty-events {
  font-size: 0.9rem; color: var(--muted); font-style: italic; padding: 12px 0;
}

/* Current week plan adherence table */
.agent-results-area .meal-plan-adherence-wrap {
  width: 100%;
}
.agent-results-area .meal-plan-adherence-card {
  /* inherits meal-plan-stage-card */
}
.agent-results-area .meal-audit-overall {
  font-size: 0.9rem; margin-bottom: 12px; padding: 8px 0;
  border-bottom: 1px solid #e8ecf1;
}
.agent-results-area .meal-audit-findings {
  font-size: 0.85rem; color: var(--muted); margin-bottom: 14px;
}
.agent-results-area .meal-audit-findings ul {
  margin: 0; padding-left: 18px;
}
.agent-results-area .meal-audit-day-score {
  font-weight: 600; margin-left: 4px;
}
.agent-results-area .meal-plan-current-week-title {
  font-size: 1rem; font-weight: 600; color: var(--navy);
  margin-bottom: 4px;
}
.agent-results-area .meal-plan-adherence-card .meal-plan-day-card {
  margin-bottom: 20px; padding: 14px 16px;
  background: #fafbfc; border-radius: 10px; border: 1px solid #e8ecf1;
}
.agent-results-area .meal-plan-adherence-card .meal-plan-day-title {
  font-size: 0.9rem; font-weight: 600; color: var(--navy);
  margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #e2e8f0;
}
.agent-results-area .meal-adherence-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-top: 0;
}
.agent-results-area .meal-adherence-table th {
  text-align: left; padding: 6px 12px 8px 0; font-weight: 600; font-size: 0.75rem;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em;
  border-bottom: 1px solid #e2e8f0;
}
.agent-results-area .meal-adherence-table td {
  padding: 10px 12px 10px 0; border-bottom: 1px solid #f1f5f9; vertical-align: top;
}
.agent-results-area .meal-adherence-table tr:last-child td {
  border-bottom: none;
}
.agent-results-area .meal-adherence-slot {
  color: var(--muted); font-weight: 500; width: 90px;
}
.agent-results-area .meal-adherence-planned {
  color: var(--navy); max-width: 240px; line-height: 1.4;
}
.agent-results-area .workout-adherence-table .meal-adherence-planned {
  max-width: 400px; white-space: normal; line-height: 1.4;
}
.agent-results-area .meal-adherence-consumed {
  color: var(--navy); max-width: 240px; line-height: 1.4;
}
.agent-results-area .meal-adherence-pct {
  font-weight: 600; min-width: 72px; text-align: right;
}
.agent-results-area .meal-adherence-pct.adherence-good {
  color: #059669;
}
.agent-results-area .meal-adherence-pct.adherence-ok {
  color: #d97706;
}
.agent-results-area .meal-adherence-pct.adherence-low {
  color: #dc2626;
}
.agent-results-area .meal-adherence-extra-row {
  background: rgba(251, 191, 36, 0.08);
}
.agent-results-area .meal-adherence-extra .extra-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #f59e0b;
  color: #fff;
  border-radius: 4px;
  margin-right: 6px;
}
.agent-results-area .meal-adherence-extra-pct {
  color: #94a3b8;
  font-style: italic;
}

.agent-results-area .chat-result-interpretation {
  margin-top: 16px; padding: 14px 16px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 1px solid rgba(10, 90, 200, 0.15); border-radius: 12px;
}
.agent-results-area .chat-result-interpretation-title { font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: 0.95rem; }
.agent-results-area .chat-result-interpretation-content { font-size: 0.95rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; color: var(--navy); }
.agent-results-area .chat-result-coaching { margin-top: 16px; padding: 14px 16px; background: #f0fdf4; border: 1px solid rgba(22, 163, 74, 0.2); border-radius: 12px; }
.agent-results-area .chat-result-coaching-title { font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: 0.95rem; }
.agent-results-area .chat-result-coaching-content { font-size: 0.95rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; color: var(--navy); }

/* 1 row, 3 cards: Interpretation | Coaching-Do | Coaching-Stop */
.agent-results-area .chat-result-three-cards-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.agent-results-area .chat-result-three-cards-row .chat-result-card { flex: 1; min-width: 200px; max-width: 33.33%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(12, 27, 51, 0.1); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.agent-results-area .chat-result-three-cards-row .chat-result-card-title { font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: 0.95rem; }
.agent-results-area .chat-result-three-cards-row .chat-result-card-content { font-size: 0.9rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; color: var(--navy); }
.agent-results-area .chat-result-three-cards-row .chat-result-card-interpretation { background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%); border-color: rgba(10, 90, 200, 0.15); }
.agent-results-area .chat-result-three-cards-row .chat-result-card-do { background: #f0fdf4; border-color: rgba(22, 163, 74, 0.2); }
.agent-results-area .chat-result-three-cards-row .chat-result-card-stop { background: #fef2f2; border-color: rgba(185, 28, 28, 0.2); }

main.page {
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.section-block {
  width: 100%;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 60px);
}

.section-block:first-of-type {
  border-top: none;
}

.section-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 48px);
}

.hero-block .section-inner {
  gap: 0;
}

.hero-block {
  background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 70%);
  padding-top: 0;
  padding-bottom: 0;
}
.questions-block {
  background: linear-gradient(135deg, #071229 0%, #10254a 100%);
  padding: clamp(16px, 3vw, 32px) clamp(16px, 5vw, 60px);
}

.journey-block {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  padding: clamp(16px, 3vw, 32px) clamp(16px, 5vw, 60px);
}

.results-block {
  background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
  padding: clamp(16px, 3vw, 32px) clamp(16px, 5vw, 60px);
}

.pricing-block {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: clamp(12px, 2vw, 24px) clamp(16px, 5vw, 60px);
}

.insights-block {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  padding: clamp(16px, 3vw, 32px) clamp(16px, 5vw, 60px);
}

.safeguards-block {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  padding: clamp(16px, 3vw, 32px) clamp(16px, 5vw, 60px);
}

.faq-block {
  background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
  padding: clamp(16px, 3vw, 32px) clamp(16px, 5vw, 60px);
}

.privacy-block,
.terms-block,
.coming-soon-block {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 60px);
}

.cta-block {
  background: #eef4ff;
}

.brand {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1vw, 10px);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand:visited,
.brand:active {
  color: var(--navy);
}

.brand-mark {
  width: clamp(20px, 3vw, 24px);
  height: clamp(20px, 3vw, 24px);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: clamp(0.5rem, 0.7vw, 0.6rem);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-text strong {
  font-size: clamp(0.42rem, 0.7vw, 0.525rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  line-height: 1.2;
}

.brand-tagline {
  display: block;
  font-size: clamp(0.455rem, 0.77vw, 0.56rem);
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: none;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: flex-end;
  gap: clamp(2px, 0.5vw, 4px);
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
}

.site-nav a {
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 0 clamp(4px, 0.7vw, 8px);
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.site-nav a:hover {
  background-color: var(--sky);
  color: var(--blue);
}

.nav-item-disabled {
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  font-weight: 600;
  color: var(--muted);
  padding: 0 clamp(4px, 0.7vw, 8px);
  border-radius: 8px;
  white-space: nowrap;
  line-height: 1;
}

.nav-tier {
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  font-weight: 600;
  color: var(--muted);
  padding: 0 clamp(4px, 0.7vw, 8px);
  white-space: nowrap;
  line-height: 1;
}

.nav-tier strong {
  color: var(--navy);
  font-weight: 700;
}

.nav-separator {
  color: var(--muted);
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  font-weight: 300;
}

/* User Selector Styles */
.user-selector-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid rgba(12, 27, 51, 0.1);
}

.user-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-select-label {
  font-size: clamp(0.65rem, 0.8vw, 0.75rem);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.user-select {
  font-size: clamp(0.65rem, 0.8vw, 0.75rem);
  padding: 4px 8px;
  border: 1px solid rgba(12, 27, 51, 0.2);
  border-radius: 6px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 180px;
}

.user-select:hover {
  border-color: var(--blue);
}

.user-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(12, 100, 251, 0.1);
}

.user-select-status {
  font-size: clamp(0.6rem, 0.75vw, 0.7rem);
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.user-select-status.active {
  color: #059669;
  background: #d1fae5;
}

.user-select-status.inactive {
  color: var(--muted);
  background: #f3f4f6;
}

.user-select-status.warning {
  color: #d97706;
  background: #fef3c7;
}

.user-message.info {
  background: #dbeafe;
  color: #1e40af;
  border-bottom: 2px solid #3b82f6;
}

.user-email-input {
  font-size: clamp(0.65rem, 0.8vw, 0.75rem);
  padding: 4px 8px;
  border: 1px solid rgba(12, 27, 51, 0.2);
  border-radius: 6px;
  background: #ffffff;
  color: var(--navy);
  min-width: 150px;
}

.add-user-btn {
  font-size: clamp(0.7rem, 0.85vw, 0.8rem);
  padding: 4px 8px;
  border: 1px solid rgba(12, 27, 51, 0.2);
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.add-user-btn:hover {
  background: #0a5ae0;
}

.user-message {
  padding: 12px 20px;
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.user-message.success {
  background: #d1fae5;
  color: #059669;
  border-bottom: 2px solid #10b981;
}

.user-message.error {
  background: #fee2e2;
  color: #dc2626;
  border-bottom: 2px solid #ef4444;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  color: var(--blue);
  margin-bottom: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  justify-items: center;
  width: 100%;
  padding: 0 clamp(20px, 4vw, 80px);
}

.hero-block .card-grid {
  gap: clamp(3.2px, 0.64vw, 6.4px);
  padding: 0 clamp(16px, 3.2vw, 64px);
  margin: 0;
}

.card-grid + .hero-message {
  margin-top: 0;
}

.hero-message {
  text-align: center;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 clamp(16px, 3.2vw, 64px);
}

.hero-message h1 {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  margin: 0;
  padding: 0;
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
  width: 100%;
}

.hero-message p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.doctor-card {
  margin: 0;
  padding: 0;
}

.hero-block .doctor-card {
  margin: 0;
  padding: 0;
}

.doctor-card img {
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(12, 27, 51, 0.25);
}

.hero-block .doctor-card img {
  transform: scale(0.8);
  transform-origin: center;
}

.cta-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-link {
  background: none;
  border: none;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 2px solid transparent;
  padding-bottom: 6px;
  transition: border-color 0.2s ease;
  font-size: 1rem;
  cursor: pointer;
}

.cta-link:hover {
  border-color: var(--blue);
}

.questions-section {
  text-align: center;
}

.questions-section header {
  color: #ffffff;
  margin-bottom: clamp(12px, 2vw, 20px);
  padding: 0 clamp(20px, 4vw, 80px);
  width: 100%;
}

.questions-section h2 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
}

.questions-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}

.question-item {
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  min-height: 200px;
}

.question-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.question-item h3 {
  margin: 0;
  font-size: clamp(0.85rem, 1.3vw, 1.1rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.5;
  text-align: center;
}

.journey-section {
  text-align: center;
}

.journey-section header {
  margin-bottom: clamp(12px, 2vw, 20px);
  padding: 0 clamp(20px, 4vw, 80px);
  width: 100%;
}

.journey-section h2 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--navy);
}

.journey-visual {
  width: 100%;
  margin: 0 auto clamp(16px, 3vw, 24px);
  padding: 0 clamp(20px, 3vw, 60px);
}

.journey-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(12, 27, 51, 0.12);
}

.journey-explanation {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
  padding: 0 clamp(20px, 4vw, 80px);
}

.journey-explanation p {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  font-weight: 400;
}

.results-section {
  text-align: center;
}

.results-section header {
  margin-bottom: clamp(12px, 2vw, 20px);
  padding: 0 clamp(20px, 4vw, 80px);
  width: 100%;
}

.results-section h2 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--navy);
}

.results-visual {
  width: 100%;
  margin: 0 auto clamp(16px, 3vw, 24px);
  padding: 0 clamp(20px, 2vw, 40px);
}

.results-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(12, 27, 51, 0.12);
}

.results-explanation {
  max-width: 100%;
  width: 100%;
  margin: 0;
  text-align: left;
  padding: 0 clamp(20px, 4vw, 80px);
}

.results-explanation p {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  font-weight: 400;
  max-width: 100%;
  width: 100%;
}

.pricing-section {
  text-align: center;
}

.pricing-section header {
  margin-bottom: clamp(12px, 2vw, 20px);
  padding: 0 clamp(20px, 4vw, 80px);
  width: 100%;
}

.pricing-section h2 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--navy);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}

.pricing-card {
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(20px, 2.5vw, 32px) clamp(16px, 2vw, 24px);
  box-shadow: 0 8px 24px rgba(12, 27, 51, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(12, 27, 51, 0.12);
}

.pricing-card-featured {
  border: 2px solid var(--blue);
  box-shadow: 0 8px 24px rgba(12, 100, 251, 0.15);
}

.pricing-title {
  margin: 0 0 clamp(8px, 1.2vw, 16px) 0;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 clamp(4px, 0.8vw, 8px) 0;
  line-height: 1;
}

.pricing-period {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  font-weight: 500;
  color: var(--muted);
}

.pricing-subtitle {
  margin: 0 0 clamp(12px, 1.8vw, 20px) 0;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: var(--muted);
  font-weight: 500;
}

.pricing-includes {
  margin: 0 0 clamp(12px, 1.8vw, 20px) 0;
}

.pricing-includes h4 {
  margin: 0 0 clamp(8px, 1.2vw, 12px) 0;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-includes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-includes li {
  padding: clamp(4px, 0.6vw, 8px) 0;
  font-size: clamp(0.75rem, 0.95vw, 0.9rem);
  color: var(--text);
  line-height: 1.5;
  position: relative;
  padding-left: clamp(16px, 2vw, 24px);
}

.pricing-includes li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.2em;
}

.pricing-best-for {
  margin-top: auto;
  padding-top: clamp(12px, 1.8vw, 20px);
  border-top: 1px solid rgba(12, 27, 51, 0.1);
}

.pricing-best-for strong {
  display: block;
  margin: 0 0 clamp(8px, 1vw, 12px) 0;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-best-for p {
  margin: 0;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: var(--muted);
  line-height: 1.6;
}

.insights-section {
  text-align: center;
}

.insights-section header {
  margin-bottom: clamp(24px, 4vw, 40px);
  padding: 0 clamp(20px, 4vw, 80px);
  width: 100%;
}

.insights-title {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  max-width: 100%;
}

.insights-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}

.insight-image {
  margin: 0;
  padding: 0;
}

.insight-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(12, 27, 51, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(12, 27, 51, 0.18);
}

.safeguards-section {
  text-align: center;
}

.safeguards-section header {
  margin-bottom: clamp(24px, 4vw, 40px);
  padding: 0 clamp(20px, 4vw, 80px);
  width: 100%;
}

.safeguards-section h2 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--navy);
}

.safeguards-content {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 48px);
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}

.safeguards-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  text-align: left;
}

.safeguard-item {
  display: flex;
  gap: clamp(16px, 2.5vw, 24px);
  align-items: flex-start;
}

.safeguard-number {
  flex-shrink: 0;
  width: clamp(36px, 4vw, 48px);
  height: clamp(36px, 4vw, 48px);
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
}

.safeguard-text h3 {
  margin: 0 0 clamp(8px, 1vw, 12px) 0;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 600;
  color: var(--navy);
}

.safeguard-text p {
  margin: 0;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: var(--text);
  line-height: 1.6;
}

.safeguards-icons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 2vw, 24px);
  justify-items: center;
  width: 100%;
}

.safeguard-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.5vw, 16px);
}

.safeguard-icon-circle {
  width: clamp(60px, 8vw, 80px);
  height: clamp(60px, 8vw, 80px);
  border-radius: 50%;
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  box-shadow: 0 4px 12px rgba(12, 27, 51, 0.08);
}

.safeguard-icon-label {
  margin: 0;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  color: var(--text);
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

/* Waitlist Modal */
.waitlist-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.waitlist-modal.active {
  opacity: 1;
  visibility: visible;
}

.waitlist-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 27, 51, 0.75);
  backdrop-filter: blur(4px);
}

.waitlist-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(12, 27, 51, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 10001;
}

.waitlist-modal.active .waitlist-modal-content {
  transform: scale(1);
}

.waitlist-modal-close {
  position: absolute;
  top: clamp(16px, 2vw, 20px);
  right: clamp(16px, 2vw, 20px);
  background: none;
  border: none;
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: clamp(32px, 4vw, 40px);
  height: clamp(32px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.waitlist-modal-close:hover {
  background: var(--sky);
  color: var(--navy);
}

.waitlist-modal-header {
  padding: clamp(32px, 4vw, 48px) clamp(32px, 4vw, 48px) clamp(16px, 2vw, 24px);
  text-align: center;
  border-bottom: 1px solid rgba(12, 27, 51, 0.1);
}

.waitlist-modal-header h2 {
  margin: 0 0 clamp(8px, 1vw, 12px) 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--navy);
}

.waitlist-modal-header p {
  margin: 0;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: var(--muted);
}

.waitlist-form {
  padding: clamp(24px, 3vw, 32px) clamp(32px, 4vw, 48px) clamp(32px, 4vw, 48px);
}

.form-group {
  margin-bottom: clamp(20px, 2.5vw, 24px);
}

.form-group label {
  display: block;
  margin-bottom: clamp(6px, 0.8vw, 8px);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: clamp(12px, 1.5vw, 16px);
  border: 2px solid rgba(12, 27, 51, 0.1);
  border-radius: 8px;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(12, 100, 251, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.waitlist-submit-btn {
  width: 100%;
  padding: clamp(14px, 1.8vw, 18px);
  background: var(--blue);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin-top: clamp(8px, 1vw, 12px);
}

.waitlist-submit-btn:hover {
  background: #0a5ae0;
  transform: translateY(-2px);
}

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

/* Thank You Modal */
.thank-you-modal-content {
  text-align: center;
  padding: clamp(40px, 5vw, 60px) clamp(32px, 4vw, 48px);
}

.thank-you-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
}

.thank-you-icon {
  width: clamp(64px, 8vw, 80px);
  height: clamp(64px, 8vw, 80px);
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: clamp(8px, 1vw, 12px);
}

.thank-you-content h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
}

.thank-you-message {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

.thank-you-details {
  margin: 0;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 500px;
}

.thank-you-close-btn {
  margin-top: clamp(8px, 1vw, 12px);
  max-width: 200px;
}

/* FAQ Section */
.faq-section {
  text-align: center;
}

.faq-section header {
  margin-bottom: clamp(24px, 4vw, 40px);
  padding: 0 clamp(20px, 4vw, 80px);
  width: 100%;
}

.faq-section h2 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--navy);
}

.faq-list {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 16px);
}

.faq-item {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(12, 27, 51, 0.1);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(12, 27, 51, 0.08);
  border-color: rgba(12, 27, 51, 0.15);
}

.faq-question {
  width: 100%;
  padding: clamp(20px, 2.5vw, 24px) clamp(24px, 3vw, 32px);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  font-family: 'DM Sans', sans-serif;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background: rgba(12, 100, 251, 0.02);
}

.faq-question span:first-child {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 600;
  color: var(--navy);
  flex: 1;
}

.faq-icon {
  flex-shrink: 0;
  width: clamp(24px, 3vw, 32px);
  height: clamp(24px, 3vw, 32px);
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 clamp(24px, 3vw, 32px);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 500px;
  padding: 0 clamp(24px, 3vw, 32px) clamp(20px, 2.5vw, 24px);
}

.faq-answer p {
  margin: 0;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: var(--text);
  line-height: 1.7;
  padding-top: clamp(8px, 1vw, 12px);
}

/* Privacy and Terms Page Styles */
.privacy-section,
.terms-section {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.privacy-section header,
.terms-section header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
  padding-bottom: clamp(24px, 4vw, 32px);
  border-bottom: 2px solid rgba(12, 27, 51, 0.1);
}

.privacy-section header h1,
.terms-section header h1 {
  margin: 0 0 clamp(12px, 2vw, 16px) 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
}

.privacy-updated,
.terms-updated {
  margin: 0;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: var(--muted);
  font-weight: 500;
}

.privacy-content,
.terms-content {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}

.privacy-intro,
.terms-intro {
  padding: clamp(24px, 3vw, 32px);
  background: var(--sky);
  border-radius: 12px;
  border-left: 4px solid var(--blue);
}

.privacy-intro p,
.terms-intro p {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--text);
  font-weight: 500;
}

.privacy-section-item,
.terms-section-item {
  padding: clamp(24px, 3vw, 32px) 0;
  border-bottom: 1px solid rgba(12, 27, 51, 0.1);
}

.privacy-section-item:last-child,
.terms-section-item:last-child {
  border-bottom: none;
}

.privacy-section-item h2,
.terms-section-item h2 {
  margin: 0 0 clamp(16px, 2vw, 24px) 0;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.privacy-section-item p,
.terms-section-item p {
  margin: 0 0 clamp(16px, 2vw, 20px) 0;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text);
}

.privacy-section-item ul,
.terms-section-item ul {
  margin: 0 0 clamp(16px, 2vw, 20px) 0;
  padding-left: clamp(24px, 3vw, 32px);
  list-style: none;
}

.privacy-section-item li,
.terms-section-item li {
  margin: 0 0 clamp(12px, 1.5vw, 16px) 0;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  color: var(--text);
  position: relative;
  padding-left: clamp(20px, 2.5vw, 28px);
}

.privacy-section-item li:before,
.terms-section-item li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.4em;
  line-height: 1;
}

.privacy-section-item li strong,
.terms-section-item li strong {
  color: var(--navy);
  font-weight: 600;
}

.privacy-section-item:last-child,
.terms-section-item:last-child {
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .header-content {
    grid-template-columns: 1fr;
    gap: clamp(16px, 3vw, 24px);
  }

  .header-center {
    order: -1;
    width: 100%;
  }

  .header-tagline {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    white-space: normal;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav a {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(12, 27, 51, 0.1);
  }

  .nav-separator {
    display: none;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .cta-links {
    flex-direction: column;
  }

  .questions-list {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 32px);
  }

  .safeguards-list {
    grid-template-columns: 1fr;
  }

  .safeguards-icons {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 24px);
  }

  .insights-images {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 2.5vw, 24px);
  }

  .insights-title {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  }

  .privacy-section,
  .terms-section {
    padding: 0 clamp(16px, 3vw, 24px);
  }

  .privacy-section header h1,
  .terms-section header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .privacy-intro,
  .terms-intro {
    padding: clamp(20px, 2.5vw, 24px);
  }

  .coming-soon-features {
    grid-template-columns: 1fr;
    gap: clamp(12px, 2vw, 16px);
  }

  .coming-soon-section {
    min-height: 50vh;
    padding: clamp(20px, 3vw, 32px) 0;
  }

  .question-item {
    min-height: auto;
  }

  .waitlist-modal-content {
    width: 95%;
    max-height: 95vh;
    border-radius: 16px;
  }

  .waitlist-modal-header {
    padding: clamp(24px, 3vw, 32px) clamp(20px, 3vw, 24px) clamp(12px, 1.5vw, 16px);
  }

  .waitlist-form {
    padding: clamp(20px, 2.5vw, 24px) clamp(20px, 3vw, 24px) clamp(24px, 3vw, 32px);
  }

  .question-item h3 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }

  .journey-explanation {
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: clamp(12px, 2vw, 20px);
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    justify-content: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-company,
  .footer-copyright,
  .footer-contact {
    font-size: clamp(0.65rem, 0.85vw, 0.8rem);
  }
}

@media (max-width: 480px) {
  .insights-images {
    grid-template-columns: 1fr;
    gap: clamp(16px, 2.5vw, 24px);
  }
}

.site-footer {
  position: relative;
  background: #ffffff;
  border-top: 2px solid rgba(12, 27, 51, 0.1);
  box-shadow: 0 -2px 12px rgba(12, 27, 51, 0.08);
  padding: clamp(4px, 0.8vw, 8px) 0;
}

.footer-content {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(8px, 1.5vw, 16px);
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-company {
  margin: 0;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-copyright {
  margin: 0;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.2;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-contact {
  margin: 0;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  text-align: right;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  padding: clamp(8px, 1.2vw, 12px) clamp(20px, 4vw, 80px);
  border-top: 1px solid rgba(12, 27, 51, 0.1);
  margin-top: clamp(4px, 0.8vw, 8px);
}

.footer-links a {
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-link-separator {
  color: var(--muted);
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  font-weight: 300;
}

/* Coming Soon Page Styles */
.coming-soon-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
}

.coming-soon-icon {
  margin-bottom: clamp(16px, 2vw, 24px);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.coming-soon-title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.coming-soon-subtitle {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.coming-soon-description {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--text);
  max-width: 600px;
  font-weight: 400;
}

.coming-soon-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  width: 100%;
  max-width: 500px;
  margin: clamp(16px, 2vw, 24px) 0;
}

.coming-soon-feature {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 16px);
  padding: clamp(16px, 2vw, 20px);
  background: var(--sky);
  border-radius: 12px;
  border: 1px solid rgba(12, 100, 251, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coming-soon-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12, 27, 51, 0.1);
}

.feature-icon {
  width: clamp(32px, 4vw, 40px);
  height: clamp(32px, 4vw, 40px);
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  flex-shrink: 0;
}

.coming-soon-feature p {
  margin: 0;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}

.coming-soon-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.5vw, 16px);
  margin-top: clamp(16px, 2vw, 24px);
}

.coming-soon-button {
  display: inline-block;
  padding: clamp(14px, 1.8vw, 18px) clamp(32px, 4vw, 48px);
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(12, 100, 251, 0.2);
}

.coming-soon-button:hover {
  background: #0a5ae0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(12, 100, 251, 0.3);
}

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

.coming-soon-note {
  margin: 0;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: var(--muted);
  font-weight: 400;
}

/* Stats display for metric charts */
.stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stat {
  background: var(--sky);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid rgba(12, 27, 51, 0.1);
}

.stat strong {
  color: var(--navy);
  font-weight: 600;
}

