/* ========================================
   OUTBOUND MASTERCLASS WORKBOOK
   Brand: DM Sans, Navy #1B2235, Orange #F86A3E
   ======================================== */

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

:root {
  --navy: #1B2235;
  --navy-light: #2a334d;
  --blue: #00A2FF;
  --blue-soft: #e6f4ff;
  --light-blue: #E6F0FA;
  --light-blue-bg: #F4F8FC;
  --orange: #F86A3E;
  --orange-hover: #e55a2e;
  --orange-soft: #F9EBE7;
  --white: #FFFFFF;
  --text: #444444;
  --text-dark: #1B2235;
  --muted: #666666;
  --muted-light: #8b92a3;
  --border: #E8E8ED;
  --border-light: #F1F2F5;
  --success: #10b981;
  --success-soft: #d1fae5;
  --shadow-sm: 0 1px 2px rgba(27, 34, 53, 0.04);
  --shadow-md: 0 4px 12px rgba(27, 34, 53, 0.06);
  --shadow-lg: 0 10px 30px rgba(27, 34, 53, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--light-blue-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ========================================
   LAYOUT: SIDEBAR + MAIN + TOP BAR
   ======================================== */

.app {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 64px 1fr;
  min-height: 100vh;
}

/* Top Bar */
.topbar {
  grid-column: 1 / -1;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 24px;
}

.topbar-logo {
  height: 32px;
  flex-shrink: 0;
}

.topbar-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.topbar-title-main {
  display: inline-block;
}

.topbar-title-context {
  color: var(--muted-light);
  font-weight: 500;
  margin-left: 8px;
}

.topbar-progress {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.progress-bar {
  width: 120px;
  height: 6px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
  border-radius: 999px;
  transition: width 0.4s var(--ease);
  width: 0%;
}

.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-light);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--border-light);
  transition: all 0.3s var(--ease);
  min-width: 70px;
  justify-content: center;
}

.save-indicator.saving {
  background: var(--blue-soft);
  color: var(--blue);
}

.save-indicator.saved {
  background: var(--success-soft);
  color: var(--success);
}

.save-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.topbar-btn:hover {
  border-color: var(--navy);
  background: var(--light-blue-bg);
}

.topbar-btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.topbar-btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.hamburger svg {
  width: 22px;
  height: 22px;
}

/* Sidebar */
.sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 24px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
}

.sidebar-section {
  padding: 0 16px;
  margin-bottom: 8px;
}

.sidebar-section-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease);
}

.sidebar-section-toggle:hover {
  background: var(--light-blue-bg);
}

.sidebar-section-toggle-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.sidebar-section-number {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.sidebar-section-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
}

.sidebar-section-chevron {
  width: 16px;
  height: 16px;
  color: var(--muted-light);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}

.sidebar-section.collapsed .sidebar-section-chevron {
  transform: rotate(-90deg);
}

.sidebar-section-count {
  font-size: 11px;
  color: var(--muted-light);
  font-weight: 600;
  background: var(--border-light);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 8px;
}

.sidebar-module-list {
  max-height: 600px;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), opacity 0.2s var(--ease);
  opacity: 1;
}

.sidebar-section.collapsed .sidebar-module-list {
  max-height: 0;
  opacity: 0;
}

.sidebar-module-list-ul {
  list-style: none;
  padding-top: 4px;
}

.sidebar-module {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  color: var(--muted-light);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 1px;
}

.sidebar-module:hover {
  background: var(--light-blue-bg);
  color: var(--text-dark);
}

.sidebar-module.in-progress,
.sidebar-module.completed {
  color: var(--text-dark);
}

.sidebar-module.active {
  background: var(--blue-soft);
  color: var(--text-dark);
  font-weight: 600;
}

.sidebar-module-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-light);
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
  box-shadow: inset 0 0 0 1.5px transparent;
}

.sidebar-module.active .sidebar-module-number {
  background: var(--blue);
  color: var(--white);
}

.sidebar-module.in-progress .sidebar-module-number {
  background: var(--white);
  color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.sidebar-module.active.in-progress .sidebar-module-number {
  background: var(--blue);
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.sidebar-module.completed .sidebar-module-number {
  background: var(--success);
  color: var(--white);
}

.sidebar-module.completed .sidebar-module-number::before {
  content: '✓';
  font-size: 13px;
}

.sidebar-module.completed .sidebar-module-number .num {
  display: none;
}

.sidebar-module-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile overlay for sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 34, 53, 0.5);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.sidebar-overlay.open {
  display: block;
  opacity: 1;
}

/* Main Content */
.main {
  padding: 40px 48px 80px;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

/* ========================================
   MODULE VIEW
   ======================================== */

.module-header {
  margin-bottom: 40px;
}

.module-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.module-number-badge {
  display: inline-flex;
  align-items: center;
  background: var(--light-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.module-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  flex: 1;
  min-width: 280px;
  margin: 0;
}

.module-tagline {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 700px;
}

/* Key Ideas */
.key-idea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

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

.key-idea-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.key-idea-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.key-idea-body p + p {
  margin-top: 14px;
}

.key-idea-list {
  list-style: none;
  margin-top: 12px;
}

.key-idea-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  line-height: 1.6;
}

.key-idea-list li::before {
  content: counter(item);
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-idea-list {
  counter-reset: item;
}

/* When the list is a <ul> (bulleted variant), render a filled blue dot
   instead of the numbered circle. */
ul.key-idea-list li::before {
  content: '';
  background: var(--blue);
  width: 8px;
  height: 8px;
  top: 22px;
  left: 7px;
  counter-increment: none;
}

/* Indented sub-bullets (e.g. Module 4 data bullets beneath a paragraph) */
.key-idea-sublist {
  margin-top: 6px;
  margin-left: 16px;
}

.key-idea-sublist li {
  padding: 6px 0 6px 22px;
  line-height: 1.6;
}

.key-idea-sublist li::before {
  content: '';
  background: var(--muted);
  width: 6px;
  height: 6px;
  top: 0.7em;
  left: 6px;
  margin-top: 6px;
  counter-increment: none;
}

.key-idea-callout {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Tables inside Key Ideas */
.idea-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.idea-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 500px;
}

.idea-table th {
  background: var(--light-blue-bg);
  color: var(--text-dark);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.idea-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.5;
}

.idea-table tr:last-child td {
  border-bottom: none;
}

.idea-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
}

.idea-table-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.idea-table-bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
  line-height: 1.5;
}

.idea-table-bullets li:last-child {
  margin-bottom: 0;
}

.idea-table-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

/* ========================================
   KEY IDEA SUBSECTIONS
   (e.g. detailed best practices under a key idea)
   ======================================== */

.key-idea-subsections {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.subsection {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--blue-soft);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border-left: 3px solid var(--blue);
}

.subsection-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.subsection-content {
  flex: 1;
  min-width: 0;
}

.subsection-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.subsection-body {
  margin: 0 0 12px 0;
  line-height: 1.6;
  color: var(--text-dark);
}

.subsection-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subsection-bullets li {
  padding-left: 4px;
  line-height: 1.55;
  color: var(--text-dark);
  font-size: 15px;
}

.subsection-bullets li blockquote {
  margin: 6px 0 0 0;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 2px solid var(--blue);
  border-radius: 4px;
  font-style: italic;
  font-size: 14px;
  color: var(--text-dark);
}

.subsection-note {
  margin: 12px 0 0 0;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .subsection {
    padding: 16px 18px;
    gap: 12px;
  }
  .subsection-num {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .subsection-title {
    font-size: 16px;
  }
}

/* ========================================
   SEQUENCE TABLE VARIANT
   (Module 8 high-touch / low-touch examples)
   ======================================== */

h4.idea-table-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 32px 0 10px 0;
}

.idea-table-sequence {
  border-radius: var(--radius-md);
}

.idea-table-sequence table {
  font-size: 14px;
  table-layout: fixed;
  width: 100%;
}

/* Sequence column widths: keep Day/Touch/Channel narrow, give Activity the rest */
.idea-table-sequence .seq-col-day {
  width: 56px;
  text-align: center;
  font-weight: 800;
  color: var(--blue);
  font-size: 15px;
}

.idea-table-sequence .seq-col-touch {
  width: 60px;
  text-align: center;
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
}

.idea-table-sequence .seq-col-channel {
  width: 110px;
  text-align: center;
}

.idea-table-sequence td.seq-col-channel {
  vertical-align: middle;
}

.idea-table-sequence .seq-col-channel .seq-channel-icon-img {
  width: 26px;
  height: 26px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 4px;
}

.idea-table-sequence .seq-col-channel .seq-channel-label-inline {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 4px;
}

.idea-table-sequence .seq-col-activity {
  width: auto;
}

.idea-table-sequence td {
  vertical-align: top;
  padding: 14px 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.idea-table-sequence .channel-label {
  display: none;
}

.idea-table-sequence .email-block,
.idea-table-sequence .seq-email {
  display: block;
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.55;
}

.idea-table-sequence .email-block {
  white-space: pre-line;
}

.idea-table-sequence .email-subject,
.idea-table-sequence .seq-email-subject {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.idea-table-sequence .seq-row-label {
  display: block;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .idea-table-sequence table {
    font-size: 13px;
    table-layout: auto;
  }
  .idea-table-sequence td {
    padding: 10px 8px;
  }
  .idea-table-sequence .seq-col-day { width: 38px; font-size: 13px; }
  .idea-table-sequence .seq-col-touch { width: 42px; font-size: 13px; }
  .idea-table-sequence .seq-col-channel { width: 70px; }
  .idea-table-sequence .seq-col-channel .seq-channel-icon-img { width: 22px; height: 22px; }
}

/* Design Your Sequence exercise tables (M8): same column widths as the example tables */
.data-table-sequence {
  table-layout: fixed;
}
.data-table-sequence th.seq-col-day,
.data-table-sequence td.seq-col-day {
  width: 60px;
  text-align: center;
  font-weight: 800;
  color: var(--blue);
}
.data-table-sequence th.seq-col-touch,
.data-table-sequence td.seq-col-touch {
  width: 64px;
  text-align: center;
  font-weight: 800;
  color: var(--navy);
}
.data-table-sequence th.seq-col-channel,
.data-table-sequence td.seq-col-channel {
  width: 170px;
}
.data-table-sequence th.seq-col-activity,
.data-table-sequence td.seq-col-activity {
  width: auto;
}
.data-table-sequence td {
  vertical-align: top;
  padding: 12px 10px;
}
@media (max-width: 768px) {
  .data-table-sequence {
    table-layout: auto;
  }
}

/* ========================================
   EXERCISES
   ======================================== */

.exercise {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.exercise-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exercise-label-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.exercise-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.exercise-instruction {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

.exercise-template {
  background: var(--light-blue-bg);
  border-left: 3px solid var(--blue);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  font-style: italic;
}

.exercise-followup {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.exercise-followup-label {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-style: italic;
  font-weight: 500;
}

/* Form Fields */
.field {
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.field-input,
.field-textarea,
.field-select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dark);
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.field-textarea {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

.field-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

/* Industry searchable combobox */
.industry-select-wrap {
  position: relative;
  width: 100%;
}

.industry-search {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.industry-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 280px;
  overflow-y: auto;
}

.industry-dropdown.open {
  display: block;
}

.industry-option {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s var(--ease);
  list-style: none;
}

.industry-option:hover {
  background: var(--light-blue-bg);
}

.industry-empty {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  list-style: none;
}

/* Sector rows (default view) */
.industry-dropdown.mode-sectors {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: visible;
  padding: 4px;
}

.industry-sector {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s var(--ease);
  list-style: none;
}

.industry-sector-label {
  flex: 1;
}

.industry-sector-chevron {
  color: var(--muted-light);
  transition: transform 0.15s var(--ease);
  flex-shrink: 0;
}

.industry-sector:hover {
  background: var(--light-blue-bg);
}

.industry-sector:hover .industry-sector-chevron {
  color: var(--blue);
  transform: translateX(2px);
}

.industry-submenu {
  display: none;
  position: fixed;
  min-width: 260px;
  max-width: 320px;
  max-height: 340px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 4px 0;
  list-style: none;
  z-index: 40;
}

.industry-sector.open > .industry-submenu {
  display: block;
}

.industry-sector.open {
  background: var(--light-blue-bg);
}

/* Persona pair (Module 3 personas) */
.persona-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.persona-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.persona-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 14px;
}

.persona-card .field {
  margin-bottom: 14px;
}

.persona-card .field:last-child {
  margin-bottom: 0;
}

/* AI Prompt reveal (Module 4) */
.ai-prompt-reveal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
}

.ai-prompt-toggle {
  width: 100%;
  background: var(--blue-soft);
  border: none;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-align: left;
  transition: background 0.2s var(--ease);
}

.ai-prompt-toggle:hover {
  background: #d6ecff;
}

.ai-prompt-toggle::after {
  content: '▾';
  margin-left: auto;
  transition: transform 0.25s var(--ease);
}

.ai-prompt-reveal.open .ai-prompt-toggle::after {
  transform: rotate(180deg);
}

.ai-prompt-body {
  display: none;
  padding: 18px;
  background: #f9fafc;
}

.ai-prompt-reveal.open .ai-prompt-body {
  display: block;
}

.ai-prompt-text {
  font-family: 'DM Mono', ui-monospace, 'SF Mono', Monaco, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  white-space: pre-wrap;
  max-height: 340px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.ai-prompt-copy {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.ai-prompt-copy:hover {
  background: #0090e0;
}

/* Force column widths for stacked key-idea tables so they align */
.idea-table {
  table-layout: fixed;
}

/* Narrow variant: first column only as wide as its content (+ some padding) */
.idea-table-wrap.idea-table-narrow {
  display: flex;
  justify-content: flex-start;
  width: auto;
  overflow-x: auto;
}

.idea-table-wrap.idea-table-narrow .idea-table {
  table-layout: auto;
  width: auto;
  max-width: 100%;
}

.idea-table-wrap.idea-table-narrow .idea-table th:first-child,
.idea-table-wrap.idea-table-narrow .idea-table td:first-child {
  white-space: nowrap;
  width: 1%;
  padding-right: 32px;
}

.idea-table-wrap.idea-table-narrow .idea-table th:last-child,
.idea-table-wrap.idea-table-narrow .idea-table td:last-child {
  max-width: 520px;
}

/* Prompt library (Module 7 AI prompts) */
.prompt-library {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 24px;
}

.prompt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prompt-card-header {
  width: 100%;
  background: var(--blue-soft);
  border: none;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-align: left;
  transition: background 0.2s var(--ease);
}

.prompt-card-header:hover {
  background: #d6ecff;
}

.prompt-card-label {
  flex: 1;
}

.prompt-card-chev {
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}

.prompt-card.open .prompt-card-chev {
  transform: rotate(180deg);
}

.prompt-card-body {
  display: none;
  padding: 16px 18px 18px;
  background: #f9fafc;
}

.prompt-card.open .prompt-card-body {
  display: block;
}

.prompt-card-context {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.prompt-card-text {
  font-family: 'DM Mono', ui-monospace, 'SF Mono', Monaco, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow-y: auto;
  margin: 0 0 12px;
}

.prompt-card-copy {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.prompt-card-copy:hover {
  background: #0090e0;
}

/* Inline image inside a Key Idea (e.g. Gong chart in Module 6) */
.key-idea-image {
  margin: 24px auto 8px;
  text-align: center;
  max-width: 520px;
}

.key-idea-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(27, 34, 53, 0.08);
  display: block;
}

.key-idea-image figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  font-style: italic;
}

/* Pulled account name (Module 6 account research) */
.account-card-num {
  color: var(--blue);
  font-weight: 700;
}

.account-card-name {
  color: var(--text-dark);
  font-weight: 600;
}

/* Scoring Grid (1-5 radio scale) */
.scoring-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scoring-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: var(--light-blue-bg);
  border-radius: var(--radius-md);
  transition: background 0.2s var(--ease);
}

.scoring-row:hover {
  background: var(--blue-soft);
}

.scoring-row-label {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.45;
}

.scoring-radios {
  display: flex;
  gap: 6px;
}

.scoring-radio {
  position: relative;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.scoring-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scoring-radio-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.scoring-radio input:checked + .scoring-radio-label {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: scale(1.08);
}

.scoring-radio:hover .scoring-radio-label {
  border-color: var(--orange);
  color: var(--text-dark);
}

.scoring-radio input:checked:hover + .scoring-radio-label {
  color: var(--white);
}

.scoring-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted-light);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--light-blue-bg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  user-select: none;
}

.checklist-item:hover {
  background: var(--blue-soft);
}

.checklist-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checklist-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
}

.checklist-item input:checked ~ .checklist-checkbox {
  background: var(--success);
  border-color: var(--success);
}

.checklist-item input:checked ~ .checklist-checkbox::after {
  content: '';
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg) translate(-1px, -1px);
}

.checklist-label {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.4;
}

.checklist-item input:checked ~ .checklist-label {
  color: var(--muted);
  text-decoration: line-through;
}

/* Table-style exercises */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.data-table th {
  background: var(--light-blue-bg);
  color: var(--text-dark);
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 6px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table .field-input,
.data-table .field-textarea,
.data-table .field-select {
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 10px;
  font-size: 13px;
}

.data-table .field-input:hover,
.data-table .field-textarea:hover,
.data-table .field-select:hover {
  background: var(--light-blue-bg);
  border-color: var(--border);
}

.data-table .field-input:focus,
.data-table .field-textarea:focus,
.data-table .field-select:focus {
  background: var(--white);
  border-color: var(--blue);
}

.data-table .field-textarea {
  min-height: 44px;
  resize: vertical;
}

.data-table .row-label {
  padding: 14px 16px;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 13px;
  background: #fcfdff;
}

/* Vertical fillable table (label/input pairs) */
.vertical-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.vertical-table-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid var(--border-light);
}

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

.vertical-table-label {
  background: var(--light-blue-bg);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
}

.vertical-table-value {
  padding: 6px;
}

.vertical-table-value .field-input,
.vertical-table-value .field-textarea {
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
}

.vertical-table-value .field-input:hover,
.vertical-table-value .field-textarea:hover {
  background: var(--light-blue-bg);
  border-color: var(--border);
}

.vertical-table-value .field-input:focus,
.vertical-table-value .field-textarea:focus {
  background: var(--white);
  border-color: var(--blue);
}

/* Account Grid (column per account, row per field) */
.account-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.account-card {
  background: var(--light-blue-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border);
}

.account-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.account-card .field-label {
  font-size: 12px;
  color: var(--muted);
}

.account-card .field-input,
.account-card .field-textarea,
.account-card .field-select {
  background: var(--white);
  font-size: 13px;
}

/* Numbered list (cold call money questions, takeaways, etc) */
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.numbered-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: start;
  gap: 12px;
}

.numbered-row-num {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* Radio buttons (entrance path, etc) */
.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.radio-option {
  position: relative;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.radio-option-label {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.radio-option-label:hover {
  border-color: var(--navy);
}

.radio-option input:checked + .radio-option-label {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Sequence/week schedule */
.week-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.week-grid-header,
.week-grid-row {
  display: grid;
  grid-template-columns: 100px repeat(4, 1fr);
}

.week-grid-header > div {
  background: var(--light-blue-bg);
  padding: 10px 12px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  text-align: center;
}

.week-grid-row {
  border-top: 1px solid var(--border-light);
}

.week-grid-row > div {
  background: var(--white);
  padding: 4px;
}

.week-grid-time {
  background: var(--light-blue-bg) !important;
  padding: 10px 12px !important;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.week-grid-row .field-input {
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-size: 12px;
  width: 100%;
}

.week-grid-row .field-input:hover {
  background: var(--light-blue-bg);
}

.week-grid-row .field-input:focus {
  background: var(--blue-soft);
}

/* Hours grid */
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
  align-items: center;
}

.hours-grid-totals {
  display: grid;
  grid-template-columns: 1fr 120px 90px;
  gap: 8px 14px;
  padding: 16px;
  background: var(--light-blue-bg);
  border-radius: var(--radius-md);
  align-items: center;
}

.hours-grid-headers {
  display: contents;
}

.hours-grid-header {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid #C9D9EE;
}

.hours-grid-header-pct {
  text-align: right;
}

.hours-row {
  display: contents;
}

.hours-label {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  background: var(--light-blue-bg);
  border-radius: var(--radius-md);
}

.hours-grid-totals .hours-label {
  padding: 4px 0;
  background: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.hours-pct {
  text-align: right;
  font-weight: 700;
  color: var(--blue);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.hours-row-total .hours-label-total {
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
  padding-top: 10px;
  border-top: 1px solid #C9D9EE;
}

.hours-total {
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid #C9D9EE;
  font-variant-numeric: tabular-nums;
}

.hours-pct-total {
  font-weight: 800;
  color: var(--navy);
  padding-top: 10px;
  border-top: 1px solid #C9D9EE;
  text-align: right;
}

.hours-input {
  padding: 10px 14px;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 600px) {
  .hours-grid-totals {
    grid-template-columns: 1fr 80px 70px;
    gap: 6px 10px;
  }
  .hours-grid-totals .hours-label,
  .hours-grid-header { font-size: 12px; }
}

/* Offer Grid */
.offer-grid-item {
  background: var(--light-blue-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
}

.offer-grid-item:last-child {
  margin-bottom: 0;
}

.offer-grid-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.offer-grid-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.offer-grid-desc {
  font-size: 13px;
  color: var(--muted);
}

.offer-grid-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ========================================
   TAKEAWAYS
   ======================================== */

.takeaways {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 40px;
  box-shadow: var(--shadow-md);
}

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

.takeaways-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.takeaways-list {
  list-style: none;
}

.takeaways-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.takeaways-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   MODULE FOOTER: NEXT/PREV
   ======================================== */

.module-footer {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.module-footer-single {
  justify-content: flex-end;
}

.module-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  font-family: inherit;
  text-align: left;
}

.module-nav-btn:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.module-nav-btn-next {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.module-nav-btn-next:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

.module-nav-dir {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  line-height: 1;
  margin-bottom: 3px;
}

.module-nav-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.module-nav-btn-next .module-nav-inner {
  align-items: flex-end;
}

.module-nav-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.module-nav-arrow {
  opacity: 0.75;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.module-nav-btn:hover .module-nav-arrow {
  transform: translateX(-2px);
}

.module-nav-btn-next:hover .module-nav-arrow {
  transform: translateX(2px);
}

/* ========================================
   WELCOME / HOME STATE
   ======================================== */

.welcome {
  padding: 40px 0;
}

.welcome-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.welcome-badge {
  display: inline-block;
  background: var(--light-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.welcome-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.welcome-subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 32px;
}

.welcome-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease);
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(248, 106, 62, 0.3);
}

.welcome-cta:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(248, 106, 62, 0.35);
}

/* Vertical stacked section cards on welcome page */
.welcome-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 56px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-footer-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  padding-top: 8px;
}

.welcome-section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease);
}

.welcome-section-card:hover {
  box-shadow: var(--shadow-md);
}

.welcome-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.welcome-section-badge {
  display: inline-flex;
  align-items: center;
  background: var(--light-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.welcome-section-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.welcome-section-descriptor {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
  margin-left: 0;
}

.welcome-module-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}

.welcome-module-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px;
  color: var(--text-dark);
}

.welcome-module-number {
  width: 28px;
  height: 28px;
  background: var(--light-blue-bg);
  color: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.welcome-module-title {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-dark);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .app {
    grid-template-columns: 260px 1fr;
  }

  .main {
    padding: 32px 32px 64px;
  }

  .module-title {
    font-size: 34px;
  }

  .welcome-title {
    font-size: 40px;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .week-grid-header,
  .week-grid-row {
    font-size: 11px;
  }

  .offer-grid-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .topbar-title {
    display: none;
  }
}

@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
  }

  .persona-pair-grid {
    grid-template-columns: 1fr;
  }

  .welcome-section-card {
    padding: 24px 20px;
  }

  .welcome-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .welcome-section-name {
    font-size: 19px;
  }

  .welcome-module-title {
    font-size: 13.5px;
  }

  .topbar {
    padding: 0 12px;
    gap: 8px;
  }

  .topbar-logo {
    height: 28px;
  }

  .topbar-title {
    display: none;
  }

  .topbar-progress {
    gap: 6px;
    margin-left: auto;
  }

  .progress-label {
    display: none;
  }

  .progress-bar {
    width: 60px;
    height: 5px;
  }

  .save-indicator {
    display: none;
  }

  .topbar-btn {
    padding: 6px 8px;
    font-size: 12px;
    gap: 0;
  }

  .topbar-btn span:not(.icon) {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 280px;
    max-width: 85%;
    height: calc(100vh - 64px);
    z-index: 45;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    box-shadow: 0 10px 40px rgba(27, 34, 53, 0.15);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    padding: 24px 20px 64px;
  }

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

  .module-tagline {
    font-size: 16px;
  }

  .exercise,
  .key-idea {
    padding: 20px;
  }

  .exercise-title,
  .key-idea-title {
    font-size: 19px;
  }

  .welcome-title {
    font-size: 32px;
  }

  .welcome-subtitle {
    font-size: 15px;
  }

  /* Vertical table stacks on mobile */
  .vertical-table-row {
    grid-template-columns: 1fr;
  }

  .vertical-table-label {
    padding: 10px 14px 4px;
  }

  /* Data tables become stacked cards on mobile */
  .data-table thead {
    display: none;
  }

  .data-table tr {
    display: block;
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }

  .data-table td {
    display: block;
    padding: 4px 0;
    border: none;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
  }

  /* Week grid on mobile: horizontal scroll */
  .week-grid-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .week-grid-header,
  .week-grid-row {
    min-width: 500px;
  }

  .scoring-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .scoring-radios {
    justify-content: flex-start;
  }

  .takeaways {
    padding: 24px;
  }

  .module-footer {
    flex-direction: column;
  }

  .module-nav-btn-next {
    margin-left: 0;
  }
}

/* ========================================
   M9 NEW EXERCISE TYPES
   ======================================== */

.template-picker {
  display: flex;
  flex-direction: column;
}

.template-picker-select {
  background: var(--white);
}

.reverse-pitch-context {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
}

.reverse-pitch-context > div {
  margin-top: 4px;
}

.reverse-pitch-context-empty {
  background: #FFF8E6;
  border-left-color: #E8A632;
  font-style: italic;
  color: var(--muted);
}

.money-questions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.money-q-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.money-q-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.money-q-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Two-column subsection (M11 gatekeeper approach) */
.subsection-twocol .subsection-content {
  width: 100%;
}

.subsection-twocol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 12px;
}

.subsection-twocol-cell {
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.subsection-col-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.subsection-bullets-plain li::before {
  display: none;
}

.subsection-bullets-plain li {
  padding-left: 0;
  font-size: 14px;
}

@media (max-width: 768px) {
  .subsection-twocol-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* EVO objection builder (M10) */
.evo-objections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.evo-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.evo-row-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.evo-row-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
}

@media (max-width: 768px) {
  .evo-row-fields {
    grid-template-columns: 1fr;
  }
}

/* Framework + script builder (M11) */
.framework-script-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
}

@media (max-width: 768px) {
  .framework-script-grid {
    grid-template-columns: 1fr;
  }
}

.framework-script-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.framework-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--blue-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.framework-option:hover,
.framework-option:has(input:checked) {
  border-color: var(--blue);
}

.framework-option input[type="radio"] {
  margin-top: 4px;
  flex-shrink: 0;
}

.framework-option-content {
  flex: 1;
}

.framework-option-label {
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
}

.framework-option-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* =====================================================
   Email builder (M12)
   ===================================================== */
.email-builder {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.email-builder-textarea {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* =====================================================
   Subject line builder (M13)
   ===================================================== */
.subject-line-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subject-line-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.subject-line-row-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.subject-line-row-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
}

@media (max-width: 768px) {
  .subject-line-row-fields {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Weekly Schedule Grids (M14)
   ======================================== */

.weekly-schedules {
  margin-top: 12px;
}

.ws-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
}

.ws-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dark);
  font-weight: 600;
}

.ws-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.weekly-schedules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1100px) {
  .weekly-schedules-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.weekly-schedule-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
}

.weekly-schedule-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.ws-grid {
  display: grid;
  grid-template-columns: 56px repeat(5, 1fr);
  grid-auto-rows: 22px;
  gap: 2px;
  min-width: 540px;
}

.ws-day-header {
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  padding: 4px 0;
  letter-spacing: 0.06em;
}

.ws-time {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  padding: 2px 4px 0 0;
  border-top: 1px solid #ECEEF3;
}

.ws-block {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  padding: 3px 5px;
  border-radius: 3px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: flex-start;
}

.ws-block-target   { background: #F4C430; color: #1B2235; }
.ws-block-call     { background: #2D9D5F; }
.ws-block-sequence { background: #6FB89A; color: #1B2235; }
.ws-block-blitz    { background: #7E57C2; }
.ws-block-meeting  { background: #E84A4A; }
.ws-block-admin    { background: #C44545; }
.ws-block-lunch    { background: #9AA5B4; }

/* ========================================
   LEADER CTA CARD (M15 homepage-style final CTA)
   ======================================== */

.leader-cta-card {
  margin-top: 32px;
  padding: 44px 36px;
  background: linear-gradient(180deg, #FCEFE9 0%, #FFFFFF 100%);
  border: 1px solid #F9EBE7;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 18px rgba(248, 106, 62, 0.08);
}

.leader-cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.leader-cta-headline {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 14px 0;
}

.leader-cta-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  max-width: 640px;
  margin: 0 auto 24px;
}

.leader-cta-btn {
  display: inline-block;
  background: var(--orange);
  color: #FFFFFF;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(248, 106, 62, 0.3);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.leader-cta-btn:hover {
  background: #e55a2e;
  box-shadow: 0 6px 20px rgba(248, 106, 62, 0.4);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .leader-cta-card {
    padding: 32px 22px;
  }
  .leader-cta-headline {
    font-size: 22px;
  }
  .leader-cta-btn {
    font-size: 16px;
    padding: 14px 28px;
  }
}

/* ========================================
   LINK CARD EXERCISE (e.g. M13 Meeting Pack)
   ======================================== */

.link-card {
  background: var(--blue-soft);
  border: 1px solid #C9D9EE;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-top: 4px;
}

.link-card-desc {
  margin: 0 0 16px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dark);
}

.link-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #FFFFFF;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.link-card-btn:hover {
  background: #2a3553;
  transform: translateY(-1px);
}

.link-card-icon {
  flex-shrink: 0;
}

/* ========================================
   FIELD TOOLTIPS
   ======================================== */

.field-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  color: var(--blue);
  cursor: help;
  position: relative;
  vertical-align: middle;
  outline: none;
}

.field-tooltip:hover,
.field-tooltip:focus {
  color: var(--navy);
}

.field-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 10;
  letter-spacing: 0;
  text-transform: none;
}

.field-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 10;
}

.field-tooltip:hover::after,
.field-tooltip:focus::after,
.field-tooltip:hover::before,
.field-tooltip:focus::before {
  opacity: 1;
  visibility: visible;
}

.field-tooltip-th {
  color: rgba(255, 255, 255, 0.7);
}

.field-tooltip-th:hover,
.field-tooltip-th:focus {
  color: var(--white);
}

/* ========================================
   BLIND DATE BUILDER (M5)
   ======================================== */

.blind-date-builder {
  margin-top: 4px;
}

.blind-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 880px) {
  .blind-date-grid {
    grid-template-columns: 1fr;
  }
}

.blind-date-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blind-date-preview {
  position: sticky;
  top: 16px;
  background: var(--blue-soft);
  border: 1px solid #C9D9EE;
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  min-height: 200px;
}

.blind-date-preview-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.blind-date-preview-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  font-style: italic;
}

.blind-date-preview-text.blind-date-preview-empty .blind-date-blank {
  background: rgba(0, 162, 255, 0.12);
  color: var(--blue);
  font-style: normal;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.blind-date-blank {
  color: var(--muted);
}

/* ========================================
   TRIGGER MAPPER (M6)
   ======================================== */

.trigger-mapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trigger-mapper-empty {
  background: #FFF8E6;
  border-left: 3px solid #E8A632;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

.trigger-mapper-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.trigger-mapper-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

.trigger-mapper-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trigger-mapper-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trigger-mapper-cascade {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.trigger-mapper-cascade > select:only-child {
  grid-column: 1 / -1;
}

.trigger-mapper [data-tm-cascade="trigger"] {
  grid-template-columns: 1fr 1fr;
}

.trigger-mapper-row-bottom {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
}

@media (max-width: 768px) {
  .trigger-mapper-cascade,
  .trigger-mapper [data-tm-cascade="trigger"],
  .trigger-mapper-row-bottom {
    grid-template-columns: 1fr;
  }
  .trigger-mapper-row {
    padding: 14px 16px;
  }
}

/* ========================================
   VERSION UPDATE BANNER
   ======================================== */

#os-update-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #FFFFFF;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  animation: os-update-banner-in 0.3s ease-out;
}

@keyframes os-update-banner-in {
  from { transform: translate(-50%, 30px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

#os-update-banner #os-update-reload {
  background: var(--orange);
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

#os-update-banner #os-update-reload:hover {
  background: #e55a2e;
}

#os-update-banner #os-update-dismiss {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

#os-update-banner #os-update-dismiss:hover {
  color: #FFFFFF;
}

@media (max-width: 600px) {
  #os-update-banner {
    left: 16px;
    right: 16px;
    transform: none;
    font-size: 13px;
  }
  @keyframes os-update-banner-in {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
}
