:root {
  color-scheme: light;
  --ivory: #fefcf8;
  --cream: #faf8f3;
  --warm: #f5f3ee;
  --teal: #0f5e54;
  --teal-dark: #0b4f47;
  --sage: #86c4bc;
  --sage-soft: #eaf6f3;
  --gold: #d4af7a;
  --gold-deep: #c9a063;
  --ink: #143f3a;
  --muted: #5a6c6a;
  --soft: #8b9d9a;
  --line: #dcece9;
  --line-warm: #ead9bf;
  --shadow: 0 28px 90px rgba(15, 94, 84, 0.12);
  --font-display: "Playfair Display", Georgia, serif;
  --font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ivory);
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(135deg, #ffffff 0%, var(--cream) 50%, var(--warm) 100%);
  color: var(--ink);
  font-family: var(--font-ui);
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a {
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(212, 175, 122, 0.62);
  outline-offset: 3px;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.demo-shell {
  display: grid;
  min-height: 100dvh;
  width: min(100%, 1440px);
  grid-template-columns: minmax(0, 1fr) minmax(31rem, 0.92fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
}

.mission-panel,
.activity-panel {
  min-width: 0;
}

.mission-panel {
  display: flex;
  min-height: 50rem;
  align-items: center;
}

.mission-content {
  width: 100%;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #ffffff;
  padding: 0.42rem 0.9rem;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11.6ch;
  margin: 1.8rem 0 1.25rem;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 5.35vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.mission-subtitle {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
}

.orb-stage {
  display: grid;
  min-height: 17rem;
  place-items: center;
  margin: clamp(2.2rem, 5vw, 3.7rem) 0 clamp(2rem, 4vw, 3.4rem);
}

.aria-orb {
  position: relative;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle at 52% 48%, #d7fff4 0%, #d5fff2 34%, rgba(213, 255, 242, 0.45) 58%, transparent 60%);
  box-shadow:
    0 0 60px rgba(134, 196, 188, 0.4),
    0 0 100px rgba(255, 255, 255, 0.8),
    inset 0 0 40px rgba(255, 255, 255, 0.55);
  animation: orb-breathe 3s ease-in-out infinite;
}

.aria-orb::before,
.aria-orb::after,
.aria-orb span {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.aria-orb::before {
  inset: -1.15rem;
  border: 1px solid rgba(134, 196, 188, 0.4);
}

.aria-orb::after {
  inset: -2.2rem;
  background: rgba(134, 196, 188, 0.16);
  filter: blur(28px);
  z-index: -1;
}

.aria-orb span:first-child {
  inset: -2.3rem;
  border: 1px solid rgba(134, 196, 188, 0.2);
}

.aria-orb span:last-child {
  inset: -3.25rem;
  border: 1px solid rgba(212, 175, 122, 0.16);
}

.call-instructions {
  width: min(100%, 35rem);
  border: 1px solid var(--line-warm);
  border-radius: 1.25rem;
  background: rgba(255, 252, 248, 0.82);
  box-shadow: 0 18px 58px rgba(212, 175, 122, 0.14);
  padding: clamp(1.35rem, 2.6vw, 2.5rem);
}

.call-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.call-icon,
.card-icon,
.empty-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--teal);
}

.call-icon {
  width: 2.55rem;
  height: 2.55rem;
  background: var(--teal);
  color: #ffffff;
  font-size: 1.05rem;
}

.meta-label {
  margin: 0;
  color: var(--soft);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-number {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--teal);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
}

.phone-number:hover {
  color: var(--teal-dark);
  transform: translateY(-1px);
}

.status-pill,
.polling-state {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e6f7f3;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-pill {
  margin-top: 1.25rem;
  padding: 0.55rem 1rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: #61d6c4;
  box-shadow: 0 0 0 0 rgba(97, 214, 196, 0.5);
  animation: status-pulse 1.8s ease-out infinite;
}

.session-block {
  margin-top: 3.85rem;
}

.session-code {
  margin: 1rem 0 1rem;
  color: var(--teal);
  font-size: clamp(1.9rem, 3.1vw, 2.45rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
}

.session-note {
  max-width: 29rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.instruction-strip,
.calendar-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(234, 246, 243, 0.72), rgba(245, 243, 238, 0.86));
}

.instruction-strip {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
}

.instruction-strip span,
.calendar-note span {
  color: var(--gold);
}

.instruction-strip p,
.calendar-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.activity-panel {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 252, 248, 0.9);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.activity-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.activity-header h2 {
  max-width: 13ch;
  margin: 1rem 0 0.7rem;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.activity-header p:not(.section-pill) {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.polling-state {
  margin-top: 2.25rem;
  padding: 0.65rem 1rem;
  white-space: nowrap;
}

.polling-state.is-error {
  background: #f9ece8;
  color: #8a3a2b;
}

.activity-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.64);
  padding: clamp(1.15rem, 2vw, 1.5rem);
}

.activity-card + .activity-card {
  margin-top: 1.5rem;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.5rem;
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--teal);
  font-size: 1rem;
}

.card-heading h3 {
  flex: 1;
  margin: 0;
  color: var(--teal);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
}

.panel-count {
  display: inline-grid;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: #edf8f6;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
}

.status-timeline {
  display: grid;
  gap: 1.05rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.status-timeline li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  color: #9bb7b2;
}

.status-timeline li > span {
  display: inline-grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border: 2px solid #cfe8e4;
  border-radius: 50%;
  background: #ffffff;
}

.status-timeline li > span::after {
  width: 0.45rem;
  height: 0.45rem;
  content: "";
  border-radius: 50%;
  background: transparent;
}

.status-timeline strong {
  overflow: hidden;
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-timeline time {
  color: #7f928f;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-timeline .is-complete {
  color: var(--teal);
}

.status-timeline .is-complete > span {
  border-color: var(--sage);
  background: var(--sage);
  color: #ffffff;
}

.status-timeline .is-complete > span::after {
  width: 0.65rem;
  height: 0.35rem;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-radius: 0;
  background: transparent;
  transform: translateY(-1px) rotate(-45deg);
}

.status-timeline .is-active {
  color: var(--teal);
}

.status-timeline .is-active > span {
  border-color: var(--sage);
  background: var(--sage);
}

.status-timeline .is-active > span::after {
  background: #ffffff;
}

.lead-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.empty-state {
  display: grid;
  min-height: 12.4rem;
  place-items: center;
  padding: 1rem;
  text-align: center;
}

.empty-state.is-hidden {
  display: none;
}

.empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: var(--sage);
  font-size: 1.8rem;
}

.empty-state p {
  margin: 0;
  color: #8fa19f;
  font-size: 1rem;
  font-weight: 700;
}

.lead-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(254, 252, 248, 0.9);
  padding: 1rem;
  animation: lead-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lead-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(134, 196, 188, 0.22), transparent);
  transform: translateX(-110%);
  animation: highlight-sweep 900ms ease-out 120ms both;
}

.lead-card-header,
.lead-meta-grid {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lead-card-header {
  justify-content: space-between;
}

.lead-name {
  margin: 0;
  color: var(--teal);
  font-size: 1.02rem;
  font-weight: 800;
}

.status-tag {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e6f7f3;
  color: var(--teal);
  padding: 0.38rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.lead-meta-grid {
  align-items: stretch;
  margin-top: 0.8rem;
}

.lead-meta {
  min-width: 0;
  flex: 1;
}

.lead-meta span {
  display: block;
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-meta strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.calendar-shell {
  overflow: hidden;
  margin-top: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #ffffff;
}

.google-calendar-frame {
  display: block;
  width: 100%;
  height: min(64vh, 34rem);
  min-height: 28rem;
  border: 0;
  background: #ffffff;
}

.calendar-toolbar {
  display: flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #e0e5e3;
  background: #f8faf9;
  padding: 0.45rem 0.55rem;
}

.calendar-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
}

.calendar-control,
.icon-control,
.calendar-mode {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(60, 64, 67, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #202124;
  font-size: 0.78rem;
  font-weight: 800;
}

.calendar-control {
  min-width: 4.55rem;
  padding: 0 0.9rem;
}

.icon-control {
  width: 2.15rem;
  font-size: 1.35rem;
  line-height: 1;
}

.calendar-mode {
  gap: 0.35rem;
  padding: 0 0.78rem;
  white-space: nowrap;
}

.calendar-control:hover,
.icon-control:hover,
.calendar-mode:hover {
  background: #f8faf9;
}

.calendar-month {
  margin: 0 0 0 0.55rem;
  color: #202124;
  font-size: 1.12rem;
  font-weight: 800;
  white-space: nowrap;
}

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

.calendar-weekdays {
  min-height: 1.6rem;
  border-bottom: 1px solid #e0e5e3;
  background: #ffffff;
}

.calendar-weekdays span {
  display: grid;
  place-items: center;
  color: #3c4043;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.month-grid {
  grid-auto-rows: minmax(4.2rem, 1fr);
  background: #ffffff;
}

.month-day {
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid #e0e5e3;
  border-bottom: 1px solid #e0e5e3;
  background: #ffffff;
  padding: 0.32rem;
}

.month-day:nth-child(7n) {
  border-right: 0;
}

.month-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.month-day.is-muted {
  background: #fbfcfc;
}

.month-day.is-muted .day-number,
.month-day.is-muted .day-name {
  color: #80868b;
}

.month-day.is-today .day-number {
  display: inline-grid;
  min-width: 1.45rem;
  min-height: 1.45rem;
  place-items: center;
  border-radius: 50%;
  background: #d7edf7;
  color: #174ea6;
}

.day-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
  min-height: 1.4rem;
}

.day-name,
.day-number {
  color: #202124;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
}

.day-name {
  color: #3c4043;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.day-events {
  display: grid;
  gap: 0.18rem;
  margin-top: 0.16rem;
}

.event-pill {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
  border-radius: 0.35rem;
  background: #e8f5e9;
  color: #137333;
  padding: 0.16rem 0.28rem;
  font-size: 0.61rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  animation: booking-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.event-pill.is-live {
  background: #fef7e0;
  color: #8a5b00;
  box-shadow: 0 0 0 1px rgba(212, 175, 122, 0.32), 0 5px 14px rgba(212, 175, 122, 0.16);
}

.event-time {
  flex: 0 0 auto;
}

.event-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-note {
  margin-top: 1rem;
  padding: 1rem;
}

.cta-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-out;
}

.cta-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 94, 84, 0.28);
  backdrop-filter: blur(16px);
}

.modal-card {
  position: relative;
  width: min(100%, 37rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 252, 248, 0.96);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  transform: translateY(0.8rem) scale(0.98);
  transition: transform 180ms ease-out;
}

.cta-modal.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal);
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.modal-card h2 {
  max-width: 12ch;
  margin: 1rem 0 1rem;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.modal-card p:not(.section-pill) {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.primary-cta,
.secondary-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.primary-cta {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #ffffff;
  padding: 0.85rem 1.15rem;
}

.primary-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(15, 94, 84, 0.18);
}

.secondary-link {
  color: var(--teal);
  padding: 0.85rem 0;
}

.secondary-link:hover {
  color: var(--gold-deep);
}

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

  .mission-panel {
    min-height: auto;
  }

  .call-instructions {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .demo-shell {
    gap: 1.75rem;
    padding: 1.25rem;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 4rem);
  }

  .orb-stage {
    min-height: 13rem;
  }

  .aria-orb {
    width: 8.5rem;
    height: 8.5rem;
  }

  .call-instructions,
  .activity-panel {
    padding: 1.15rem;
  }

  .activity-header,
  .calendar-toolbar,
  .call-row,
  .lead-card-header,
  .lead-meta-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .polling-state {
    margin-top: 0;
  }

  .phone-number {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .session-block {
    margin-top: 2.2rem;
  }

  .status-timeline li {
    grid-template-columns: 1.5rem minmax(0, 1fr);
  }

  .status-timeline time {
    grid-column: 2;
  }

  .calendar-nav {
    flex-wrap: wrap;
  }

  .calendar-month {
    flex-basis: 100%;
    margin: 0.2rem 0 0;
  }

  .month-grid {
    grid-auto-rows: minmax(4.7rem, 1fr);
  }

  .month-day {
    padding: 0.24rem;
  }

  .day-name,
  .event-time {
    display: none;
  }

  .event-pill {
    font-size: 0.56rem;
    padding: 0.14rem 0.2rem;
  }

  .modal-close {
    position: static;
    margin-left: auto;
    margin-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@keyframes orb-breathe {
  0%,
  100% {
    transform: scale(0.98);
  }

  50% {
    transform: scale(1.03);
  }
}

@keyframes status-pulse {
  70% {
    box-shadow: 0 0 0 0.5rem rgba(97, 214, 196, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(97, 214, 196, 0);
  }
}

@keyframes lead-in {
  from {
    opacity: 0;
    transform: translateY(0.9rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes highlight-sweep {
  to {
    transform: translateX(110%);
  }
}

@keyframes booking-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
