:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-muted: #eef3ef;
  --ink: #1f2a2e;
  --muted: #66757b;
  --line: #dce3df;
  --green: #1f8a70;
  --green-soft: #dff3ed;
  --blue: #315b9c;
  --blue-soft: #e4ecfb;
  --gold: #9a6a18;
  --gold-soft: #f6ead0;
  --red: #b34b4b;
  --red-soft: #f8dfdd;
  --shadow: 0 18px 50px rgba(31, 42, 46, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(31, 138, 112, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(49, 91, 156, 0.08), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand h1,
.brand p,
.hero h2,
.section h2,
.metric-card p,
.template-card p,
.category-card p,
.case-study-grid p,
.sidebar-note p {
  margin: 0;
}

.brand h1 {
  font-size: 17px;
  line-height: 1.15;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.back-to-site {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.back-to-site:hover {
  opacity: 0.88;
}

.nav-list a {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-list a:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.sidebar-note {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.sidebar-note span {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.sidebar-note p {
  color: var(--muted);
  font-size: 13px;
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 32px 36px;
}

.notion-note {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 4px 0 18px;
  border: 1px solid #c9ded7;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(223, 243, 237, 0.72);
  color: #24584d;
  font-size: 13px;
}

.notion-note strong {
  flex: 0 0 auto;
  color: #0f604d;
}

.notion-note span {
  color: #49635d;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  padding: 10px 0 24px;
}

.hero-copy {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.hero h2 {
  max-width: 780px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy > p:last-child {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}

.hero-panel,
.metric-card,
.table-shell,
.category-card,
.template-card,
.recovery-section,
.reporting-section,
.questions-section,
.knowledge-section,
.case-study-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 20px;
}

.panel-header,
.hero-panel-footer,
.template-header,
.split-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-header span,
.hero-panel-footer,
.metric-card span,
.table-shell th,
.recovery-list span {
  color: var(--muted);
  font-size: 13px;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  height: 150px;
  padding: 14px 0;
}

.mini-chart span {
  display: block;
  min-height: 36px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--green), #8fcfba);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 14px;
  margin: 6px 0 28px;
}

.metric-card {
  padding: 16px;
}

.metric-card strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 27px;
  line-height: 1;
}

.metric-card p {
  color: var(--muted);
  font-size: 13px;
}

.metric-card.hot {
  background: linear-gradient(180deg, #fff, var(--red-soft));
  border-color: #efc5c0;
}

.section {
  margin: 34px 0 16px;
}

.section h2 {
  font-size: 24px;
  letter-spacing: 0;
}

.section-copy {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button,
.copy-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.filter-button {
  padding: 0 14px;
}

.filter-button.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: #0f604d;
}

.calendar-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calendar-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.calendar-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: #fbfcfa;
}

.calendar-view-button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.calendar-view-button.active {
  background: var(--ink);
  color: #fff;
}

.calendar-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
}

.calendar-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-muted);
}

.calendar-summary span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-summary strong {
  display: block;
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.15;
}

.calendar-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.calendar-grid {
  display: grid;
  gap: 12px;
}

.calendar-day {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calendar-week {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  overflow-x: auto;
  padding-bottom: 2px;
}

.calendar-month {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.appointment-card,
.calendar-day-card,
.calendar-month-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.appointment-card {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.appointment-card strong {
  display: block;
  font-size: 15px;
}

.appointment-card div:first-child span,
.appointment-meta span:last-child,
.empty-day {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.appointment-card p {
  margin: 0;
  font-weight: 850;
}

.appointment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-day-card,
.calendar-month-card {
  padding: 12px;
}

.calendar-day-card h3,
.calendar-month-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.calendar-day-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 150px;
}

.empty-day {
  margin: 0;
}

.calendar-month-card strong {
  display: block;
  color: var(--green);
  font-size: 13px;
}

.calendar-month-card ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.table-shell {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #fbfcfa;
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.lead-name {
  display: grid;
  gap: 2px;
  font-weight: 800;
}

.lead-name span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pill.hot-follow-up,
.pill.dns-recovery {
  background: var(--red-soft);
  color: var(--red);
}

.pill.scheduled {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill.enrolled,
.pill.fit-a {
  background: var(--green-soft);
  color: var(--green);
}

.pill.nurture,
.pill.fit-c,
.pill.fit-d {
  background: var(--gold-soft);
  color: var(--gold);
}

.pill.fit-b {
  background: var(--blue-soft);
  color: var(--blue);
}

.category-grid,
.template-grid,
.question-grid,
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.category-card,
.template-card,
.case-study-grid article {
  padding: 18px;
}

.category-code {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.category-card h3,
.template-card h3,
.case-study-grid h2 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.category-card p,
.template-card p,
.case-study-grid p,
.faq-list p {
  color: var(--muted);
  font-size: 14px;
}

.recovery-section,
.reporting-section,
.questions-section,
.knowledge-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  padding: 22px;
}

.priority-recovery {
  margin-top: 26px;
  background:
    linear-gradient(135deg, rgba(248, 223, 221, 0.76), transparent 48%),
    var(--surface);
  border-color: #efc5c0;
}

.recovery-list {
  display: grid;
  gap: 12px;
}

.recovery-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid #efc5c0;
  border-left: 5px solid var(--red);
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
}

.recovery-list strong {
  color: var(--red);
  font-size: 13px;
  line-height: 1.25;
}

.conversion-card {
  display: grid;
  gap: 12px;
}

.conversion-row {
  display: grid;
  grid-template-columns: 190px 1fr 48px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.conversion-row div:first-child {
  display: grid;
  gap: 2px;
}

.conversion-row span {
  color: var(--muted);
  font-size: 13px;
}

.conversion-row b {
  color: var(--green);
  font-size: 18px;
  text-align: right;
}

.conversion-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.conversion-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #8fcfba);
}

.question-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 0;
}

.question-grid article {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.template-grid {
  grid-template-columns: repeat(2, 1fr);
}

.template-card {
  box-shadow: none;
}

.template-header {
  align-items: start;
}

.template-header h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.copy-button {
  padding: 0 12px;
}

.copy-button:hover {
  border-color: var(--green);
}

.copy-feedback {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--green);
  font-weight: 800;
}

.use-when {
  display: block;
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fbfcfa;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.case-page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 52px;
}

.case-header {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.case-header h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
}

.case-header > p:last-child {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.case-main {
  width: 100%;
  padding: 0;
}

.case-study-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.case-study-grid article span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

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

  .sidebar {
    position: static;
    height: auto;
    padding: 18px 24px;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
  }

  .sidebar-note {
    margin-top: 0;
  }

  .hero,
  .recovery-section,
  .reporting-section,
  .questions-section,
  .knowledge-section {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .category-grid,
  .question-grid,
  .calendar-month {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  main {
    padding: 22px;
  }

  .hero-copy {
    min-height: auto;
    padding: 26px;
  }

  .hero h2 {
    font-size: 31px;
  }

  .metrics-grid,
  .category-grid,
  .template-grid,
  .question-grid,
  .case-study-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .notion-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .conversion-row {
    grid-template-columns: 1fr;
  }

  .conversion-row b {
    text-align: left;
  }

  .calendar-heading,
  .calendar-shell {
    grid-template-columns: 1fr;
  }

  .calendar-heading {
    flex-direction: column;
  }

  .calendar-toggle {
    width: 100%;
  }

  .calendar-view-button {
    flex: 1;
  }

  .calendar-day,
  .calendar-month {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------------------
   Guided walkthrough
   The launch bar, full-page dimming backdrop, active-section highlight ring,
   and the floating narration overlay with its controls.
--------------------------------------------------------------------------- */

.walkthrough-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
  border: 1px solid #c7d8f0;
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(228, 236, 251, 0.7);
}

.walkthrough-launch span {
  color: var(--muted);
  font-size: 13px;
}

.walkthrough-start {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.walkthrough-start:hover {
  filter: brightness(1.05);
}

/* Full-viewport dim. pointer-events stay off so the page keeps working,
   focus comes from the highlight ring below, not from blocking clicks. */
.wt-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 28, 32, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.wt-backdrop.is-visible {
  opacity: 1;
}

/* The active section is lifted above the backdrop and ringed. */
.wt-highlight {
  position: relative;
  z-index: 1001;
  border-radius: 10px;
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(49, 91, 156, 0.18), 0 18px 50px rgba(20, 28, 32, 0.3);
}

/* Floating narration card. Always above the backdrop and the highlight. */
.wt-overlay {
  position: fixed;
  z-index: 1100;
  right: 24px;
  bottom: 24px;
  width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 16px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(20, 28, 32, 0.32);
}

.wt-overlay[hidden] {
  display: none;
}

.wt-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.wt-step-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wt-audio-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wt-close,
.wt-icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.wt-close {
  font-size: 18px;
}

.wt-close:hover,
.wt-icon-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.wt-icon-btn[aria-pressed="true"] {
  border-color: var(--blue);
  color: var(--blue);
}

.wt-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.wt-narration {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.wt-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wt-scrubber {
  flex: 1;
  height: 4px;
  accent-color: var(--blue);
  cursor: pointer;
}

.wt-time {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wt-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.wt-transport,
.wt-stepnav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wt-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.wt-btn:hover:not(:disabled) {
  border-color: var(--blue);
}

.wt-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

.wt-btn.wt-tiny {
  padding: 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.wt-btn.wt-pause {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: var(--blue);
  color: var(--blue);
}

.wt-btn.wt-pause .wt-pause-icon {
  font-size: 14px;
  line-height: 1;
}

.wt-btn.wt-next {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.wt-cta {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

@media (max-width: 560px) {
  .wt-overlay {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }

  .metrics-grid,
  .category-grid,
  .template-grid,
  .question-grid,
  .case-study-grid,
  .calendar-day,
  .calendar-month {
    grid-template-columns: 1fr;
  }

  .hero-panel-footer,
  .panel-header,
  .template-header {
    align-items: flex-start;
    flex-direction: column;
  }

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