/* ============================================================
   SIMINI IMPLEMENTATION COACH — Design System
   ============================================================ */

/* === Google Fonts loaded in HTML === */

/* === CSS Variables === */
:root {
  --blue:        #1A5FA0;
  --blue-dark:   #0D3D6B;
  --blue-light:  #EBF3FC;
  --white:       #FFFFFF;
  --gray-50:     #F7F8FA;
  --gray-100:    #EEF0F4;
  --gray-200:    #D8DCE6;
  --gray-400:    #8E96A8;
  --gray-600:    #4E5768;
  --gray-900:    #1E2536;
  --green:       #0F6E56;
  --green-light: #E1F5EE;

  --radius-sm:  10px;
  --radius-lg:  16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);

  --transition: 200ms ease;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   PAGE SYSTEM
   ============================================================ */
.page { display: none; min-height: 100vh; }
.page.active { display: block; animation: pageFadeIn 300ms ease; }

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Inner container */
.page-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  min-height: 44px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-secondary:hover { background: var(--blue-light); }

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-50); color: var(--gray-900); }

.btn-large {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-full { width: 100%; }

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover { background: #0a5a44; }

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
}

.logo-sub {
  font-size: 13px;
  color: var(--gray-400);
}

/* ============================================================
   WELCOME PAGE
   ============================================================ */
#page-welcome {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
}

#page-welcome.active { display: flex; }

.welcome-inner {
  max-width: 560px;
  width: 100%;
}

.welcome-headline {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.welcome-sub {
  font-size: 17px;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.65;
}

.welcome-body {
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: 40px;
}

.welcome-footer {
  margin-top: 16px;
  font-size: 13px;
  color: var(--gray-400);
}

/* ============================================================
   INTAKE PAGE
   ============================================================ */
#page-intake {
  background: var(--white);
  min-height: 100vh;
  display: none;
  flex-direction: column;
}

#page-intake.active { display: flex; }

.intake-header {
  padding: 24px 24px 0;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.progress-pct {
  font-size: 13px;
  color: var(--gray-400);
}

.progress-bar {
  height: 4px;
  background: var(--gray-100);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.intake-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px 80px;
}

.question-wrap {
  max-width: 560px;
  width: 100%;
  animation: questionIn 280ms ease;
}

@keyframes questionIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.question-text {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.25;
  color: var(--gray-900);
  margin-bottom: 28px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  min-height: 52px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all var(--transition);
}

.option-card:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue-dark);
  transform: translateX(2px);
}

.option-card.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  transform: translateX(2px);
}

.option-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.option-card:hover .option-dot { border-color: var(--blue); }
.option-card.selected .option-dot {
  border-color: var(--white);
  background: rgba(255,255,255,0.3);
}
.option-card.selected .option-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
}

/* Summary screen */
.summary-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
}

.summary-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}
.summary-row:last-child { border-bottom: none; }
.summary-q { color: var(--gray-600); flex: 1; }
.summary-a { font-weight: 600; color: var(--gray-900); text-align: right; }

.summary-cta-note {
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 10px;
}

/* ============================================================
   PLAN PAGE
   ============================================================ */
.plan-header {
  margin-bottom: 32px;
}

.badge-green {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--green-light);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  border-radius: 99px;
  margin-bottom: 16px;
}

.plan-headline {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.plan-subheadline {
  font-size: 16px;
  color: var(--gray-600);
}

/* Core strategy box */
.core-strategy {
  background: var(--blue-light);
  border: 1px solid #c5ddf6;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 36px;
}

.core-strategy-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 16px;
}

.core-strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.core-item-label {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.core-item-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.4;
}

/* Plan layout: main + sidebar */
.plan-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* Step cards */
.step-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); }

.step-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-phase {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 4px;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
}

.step-desc {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.6;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  font-size: 12px;
  color: var(--gray-600);
}

.step-tag strong {
  color: var(--gray-900);
  font-weight: 600;
}

/* Why it works */
.why-section {
  margin-top: 24px;
}

.why-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.why-item {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.why-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 7px;
}

/* Plan sidebar */
.plan-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 10px;
}

.sidebar-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

.sidebar-challenge {
  font-size: 14px;
  color: var(--gray-900);
  font-weight: 500;
  line-height: 1.5;
}

/* Plan CTAs */
.plan-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}

/* ============================================================
   ASSETS PAGE
   ============================================================ */
.assets-header {
  margin-bottom: 28px;
}

.assets-title {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.assets-sub {
  font-size: 15px;
  color: var(--gray-600);
}

/* Tabs */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-100);
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition);
  min-height: 44px;
}

.tab-btn:hover { color: var(--gray-900); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: pageFadeIn 200ms ease; }

/* Content blocks */
.content-block {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.content-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.content-block-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 6px;
  transition: all var(--transition);
  min-height: 32px;
}

.copy-btn:hover { background: #d0e8f9; }
.copy-btn.copied { color: var(--green); background: var(--green-light); }

.content-block-body {
  padding: 20px;
}

.content-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.75;
  white-space: pre-wrap;
  font-family: var(--font-sans);
}

.email-subject {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.email-subject-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  padding: 8px 12px;
  background: var(--gray-50);
  border-radius: 6px;
  margin-bottom: 16px;
}

/* Script blocks */
.script-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.script-item:last-child { border-bottom: none; }

.script-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 6px;
}

.script-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  font-style: italic;
}

.script-text.highlight-ownership { font-weight: 600; color: var(--gray-900); }

/* SOP Checklist */
.sop-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sop-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}
.sop-item:hover { background: var(--gray-50); }

.sop-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all var(--transition);
}

.sop-item.checked .sop-checkbox {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.sop-item.checked .sop-checkbox::after {
  content: '✓';
  font-size: 12px;
  font-weight: 700;
}

.sop-text {
  font-size: 14px;
  color: var(--gray-700, #374151);
  line-height: 1.5;
  flex: 1;
}

.sop-item.checked .sop-text {
  text-decoration: line-through;
  color: var(--gray-400);
}

.sop-owner {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
}

.sop-note {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fff8e6;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
}

.assets-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
}

/* ============================================================
   COACH PAGE
   ============================================================ */
#page-coach {
  background: var(--gray-50);
  min-height: 100vh;
  display: none;
}

#page-coach.active { display: block; }

.coach-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
}

.coach-main {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-right: 1px solid var(--gray-100);
  height: 100vh;
  overflow: hidden;
}

/* Coach header */
.coach-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
  flex-shrink: 0;
}

.coach-avatar {
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.coach-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 1;
}

.coach-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

.coach-role {
  font-size: 12px;
  color: var(--gray-400);
}

.online-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #dcfce7;
}

/* Messages */
.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: msgIn 200ms ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.65;
  max-width: 100%;
}

.message.bot .message-bubble {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  color: var(--gray-900);
  border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
  background: var(--blue);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.message.bot .msg-avatar {
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 14px 18px;
  align-items: center;
}
.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typing 1.2s ease infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-4px); opacity: 1; }
}

/* Chips */
.chips-row {
  display: flex;
  gap: 8px;
  padding: 0 24px 16px;
  overflow-x: auto;
  flex-shrink: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 500;
  border-radius: 99px;
  border: 1px solid #c5ddf6;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 36px;
}
.chip:hover { background: #d0e8f9; }

/* Chat input */
.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
  flex-shrink: 0;
}

#chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  min-height: 44px;
}
#chat-input:focus { border-color: var(--blue); }
#chat-input::placeholder { color: var(--gray-400); }

/* Coach sidebar */
.coach-sidebar {
  background: var(--gray-50);
  padding: 24px;
  overflow-y: auto;
  height: 100vh;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.rollup-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rollup-item {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}
.rollup-item strong { color: var(--gray-900); font-weight: 600; }

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 40px;
}
.sidebar-link:hover { background: var(--gray-100); color: var(--blue); }

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.section-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 32px 0;
}

/* ============================================================
   BACK NAV
   ============================================================ */
.back-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 24px 0;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-400);
  padding: 6px 0;
  transition: color var(--transition);
  min-height: 44px;
}
.back-btn:hover { color: var(--blue); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .welcome-headline { font-size: 32px; }

  .plan-layout { grid-template-columns: 1fr; }
  .plan-sidebar { position: static; }

  .coach-layout { grid-template-columns: 1fr; }
  .coach-sidebar { display: none; }
  .coach-main { height: 100vh; }

  .core-strategy-grid { grid-template-columns: 1fr; gap: 12px; }

  .plan-ctas { flex-direction: column; }
  .plan-ctas .btn { width: 100%; }

  .page-inner { padding: 24px 16px 60px; }

  .tab-btn { padding: 10px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
  .welcome-headline { font-size: 26px; }
  .question-text { font-size: 22px; }
  .plan-headline { font-size: 26px; }
}

/* ============================================================
   PRINT / PDF STYLES
   ============================================================ */
@media screen {
  #pdf-full,
  #pdf-staff { display: none; }
}

@media print {
  body > * { display: none !important; }
  body > .pdf-active { display: block !important; }

  @page { margin: 0.75in; size: letter; }

  body {
    font-family: 'DM Sans', Arial, sans-serif;
    color: #1E2536;
    font-size: 12px;
    line-height: 1.5;
  }

  h1 { font-size: 22px; margin-bottom: 6px; }
  h2 { font-size: 16px; margin-bottom: 4px; margin-top: 20px; }
  h3 { font-size: 13px; margin-bottom: 4px; margin-top: 14px; }

  .pdf-header {
    border-bottom: 2px solid #1A5FA0;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }

  .pdf-header h1 { color: #0D3D6B; }
  .pdf-subtitle { color: #4E5768; font-size: 11px; }

  .pdf-box {
    border: 1px solid #ccc;
    padding: 12px;
    margin: 12px 0;
    border-radius: 4px;
  }

  .pdf-shaded {
    background: #f5f5f5;
    padding: 14px;
    margin: 14px 0;
    border-radius: 4px;
  }

  .pdf-steps {
    display: flex;
    gap: 10px;
    margin: 14px 0;
  }

  .pdf-step {
    flex: 1;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 11px;
    border-radius: 4px;
  }

  .pdf-step-num {
    font-weight: 700;
    color: #1A5FA0;
    font-size: 12px;
    margin-bottom: 4px;
  }

  .pdf-step-title { font-weight: 700; margin-bottom: 6px; }
  .pdf-step-meta { color: #4E5768; font-size: 10px; line-height: 1.6; }

  .pdf-script-box {
    background: #EBF3FC;
    border: 1px solid #c5ddf6;
    padding: 14px;
    margin: 12px 0;
    border-radius: 4px;
    font-size: 13px;
    font-style: italic;
    line-height: 1.6;
  }

  .pdf-important {
    border: 2px solid #1A5FA0;
    padding: 12px;
    margin: 12px 0;
    border-radius: 4px;
  }

  .pdf-checklist { margin: 10px 0; }
  .pdf-check-item {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 11px;
  }
  .pdf-check-box {
    width: 14px;
    height: 14px;
    border: 1.5px solid #aaa;
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 11px;
  }
  .pdf-table th {
    background: #EBF3FC;
    color: #0D3D6B;
    font-weight: 700;
    padding: 8px;
    text-align: left;
    border: 1px solid #ccc;
  }
  .pdf-table td {
    padding: 8px;
    border: 1px solid #ddd;
    vertical-align: top;
    line-height: 1.5;
  }

  .pdf-page-break { page-break-before: always; }

  .pdf-footer {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #ccc;
    font-size: 10px;
    color: #8E96A8;
  }

  .pdf-rule {
    background: #EBF3FC;
    border-left: 3px solid #1A5FA0;
    padding: 10px 14px;
    margin: 14px 0;
    font-weight: 600;
    font-size: 12px;
    color: #0D3D6B;
  }
}
