:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f3f6fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.account-panel .mobile-phone-help {
  margin: 0.6rem 0 1rem;
  color: #64728a;
  font-size: 0.8rem;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 9px;
  padding: 0.7rem 1rem;
  color: #fff;
  background: #315ed3;
  cursor: pointer;
  font-weight: 650;
}

button:hover:not(:disabled) {
  background: #244bb1;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd4e2;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid #9db8ff;
  outline-offset: 2px;
}

.shell {
  width: min(100% - 2rem, 1024px);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.page-header,
.account-row,
.section-heading,
.button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1,
.panel h2,
.panel h3,
.page-header p {
  margin-top: 0;
}

.page-header h1 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.eyebrow {
  margin-bottom: 0.3rem;
  color: #53647d;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.connection-state {
  margin-bottom: 0;
  color: #53647d;
  font-size: 0.9rem;
}

.panel {
  border: 1px solid #e1e7f0;
  border-radius: 14px;
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 8px 24px rgb(21 39 71 / 5%);
}

.login-panel {
  width: min(100%, 420px);
  margin: 0;
}

.public-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 2rem;
  align-items: center;
  min-height: 390px;
  margin: 2rem 0 3rem;
  border: 1px solid #e1e7f0;
  border-radius: 18px;
  padding: clamp(1.25rem, 5vw, 3rem);
  background: linear-gradient(130deg, #fff 45%, #edf3ff);
}

.public-copy h2 {
  max-width: 13em;
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
}

.public-copy > p:not(.eyebrow) {
  max-width: 38rem;
  color: #53647d;
  line-height: 1.7;
}

.feature-list {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.2rem;
  color: #43536c;
}

.install-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #315ed3;
  font-weight: 650;
}

.login-panel form {
  display: grid;
  gap: 0.65rem;
}

.admin-dashboard {
  margin-top: 1rem;
}

.admin-dashboard h2 {
  margin-bottom: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}

.stat-card {
  display: grid;
  gap: 0.5rem;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  padding: 1rem;
  color: #53647d;
}

.stat-card strong {
  color: #172033;
  font-size: 1.7rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  border-bottom: 1px solid #edf0f5;
  padding: 0.75rem;
  white-space: nowrap;
}

th {
  color: #53647d;
  font-size: 0.85rem;
}

.login-panel label {
  margin-top: 0.35rem;
  font-weight: 650;
}

.phone-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.account-panel {
  grid-column: 1;
}

.directory-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.history-panel {
  grid-column: 1;
}

.account-row {
  margin-bottom: 1.5rem;
}

.account-row h2,
.section-heading h2 {
  margin-bottom: 0.2rem;
}

.muted {
  color: #64728a;
  font-size: 0.9rem;
}

.button-secondary {
  color: #263650;
  background: #e9eef7;
}

.button-secondary:hover:not(:disabled) {
  background: #dce5f2;
}

.call-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.feedback {
  min-height: 1.4em;
  color: #43536c;
}

.feedback[data-error="true"] {
  color: #a32132;
}

.video-call-dialog {
  width: min(940px, calc(100vw - 2rem));
  max-width: none;
  max-height: min(92dvh, 900px);
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 1.6rem);
  color: #fff;
  background: #101725;
  box-shadow: 0 28px 100px rgb(4 12 26 / 50%);
}

.video-call-dialog::backdrop {
  background: rgb(9 17 31 / 76%);
  backdrop-filter: blur(7px);
}

.video-call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.video-call-header .eyebrow {
  color: #9eb8ff;
}

.video-call-header h2 {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
}

.video-call-state {
  margin: 0;
  color: #cbd6e8;
  font-size: 0.88rem;
  text-align: right;
}

.video-call-state[data-error="true"] {
  color: #ffb4ba;
}

.video-stage {
  position: relative;
  min-height: 260px;
  height: min(58dvh, 560px);
  overflow: hidden;
  border: 1px solid #303c50;
  border-radius: 15px;
  background: #080d16;
}

.remote-video-wrap,
.local-video-wrap {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
  background: #151e2d;
}

.remote-video-wrap {
  inset: 0;
}

.remote-video-wrap video,
.local-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remote-video-wrap video {
  position: absolute;
  inset: 0;
}

.local-video-wrap {
  right: 1rem;
  bottom: 1rem;
  width: min(28%, 210px);
  aspect-ratio: 4 / 3;
  border: 2px solid rgb(255 255 255 / 80%);
  box-shadow: 0 8px 26px rgb(0 0 0 / 35%);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem;
  color: #aebbd0;
  background: #151e2d;
  font-size: 0.9rem;
  text-align: center;
}

.video-name {
  position: absolute;
  z-index: 1;
  left: 0.65rem;
  bottom: 0.6rem;
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
  color: #fff;
  background: rgb(7 13 23 / 70%);
  font-size: 0.72rem;
}

.incoming-call-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0;
}

.incoming-call-actions p {
  width: 100%;
  margin: 0;
  color: #fff;
  text-align: center;
}

.incoming-call-actions button:first-of-type {
  background: #188452;
}

.video-call-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.call-control {
  min-width: 130px;
  color: #e8eef8;
  background: #29364a;
}

.call-control[aria-pressed="true"] {
  color: #fff;
  background: #a54250;
}

.hangup-button {
  min-width: 140px;
  margin: 0;
  background: #b52e42;
}

.hangup-button:hover:not(:disabled) {
  background: #972337;
}

.user-list,
.call-history {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.user-item,
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid #edf0f5;
  padding-top: 0.7rem;
}

.user-meta,
.history-meta {
  display: grid;
  gap: 0.15rem;
}

.user-status {
  color: #64728a;
  font-size: 0.8rem;
}

.user-status[data-status="online"] {
  color: #197448;
}

.user-status[data-status="busy"] {
  color: #a36512;
}

.history-item {
  align-items: flex-start;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 1.25rem, 540px);
    padding-top: 1.25rem;
  }

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

  .directory-panel,
  .account-panel,
  .history-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .video-call-dialog {
    width: calc(100vw - 1rem);
    max-height: 94dvh;
    border-radius: 15px;
    padding: 0.85rem;
  }

  .video-stage {
    min-height: 240px;
    height: 55dvh;
  }

  .local-video-wrap {
    right: 0.6rem;
    bottom: 0.6rem;
    width: min(38%, 150px);
  }

  .video-call-state {
    max-width: 45%;
    font-size: 0.76rem;
  }

  .call-control,
  .video-call-controls .hangup-button {
    min-width: 0;
    flex: 1 1 28%;
    padding: 0.7rem 0.55rem;
    font-size: 0.8rem;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-intro {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 1rem;
    padding: 1.25rem;
  }

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

.shell {
  width: min(100% - 2rem, 1160px);
  padding-top: 1.4rem;
}

.page-header {
  min-height: 58px;
  margin-bottom: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.site-brand .brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #315ed3;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-brand .eyebrow {
  margin: 0 0 0.1rem;
  font-size: 0.62rem;
}

.site-brand .brand-copy strong {
  display: block;
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

body[data-authenticated="true"] .main-nav,
body[data-authenticated="true"] .site-footer {
  display: none;
}

.main-nav > a {
  color: #53647d;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav > a:hover {
  color: #315ed3;
}

.main-nav button {
  padding: 0.62rem 0.9rem;
}

.public-site {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: 570px;
  padding: 4rem 0 4.5rem;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 1.15;
  letter-spacing: -0.055em;
}

.hero-copy h2 span {
  color: #315ed3;
}

.hero-copy .eyebrow,
.section-intro .eyebrow,
.steps-copy .eyebrow,
.closing-cta .eyebrow {
  margin-bottom: 0.8rem;
  color: #315ed3;
}

.hero-description {
  max-width: 33rem;
  margin: 1.25rem 0 0;
  color: #53647d;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.7rem;
}

.primary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 0;
  border-radius: 9px;
  padding: 0.75rem 1.1rem;
  color: #fff;
  background: #315ed3;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.primary-link:hover {
  color: #fff;
  background: #244bb1;
}

.text-button {
  padding: 0;
  color: #53647d;
  background: transparent;
  font-weight: 650;
}

.text-button:hover:not(:disabled) {
  color: #315ed3;
  background: transparent;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.7rem 0 0;
  color: #718098;
  font-size: 0.82rem;
}

.dialer-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 2rem;
  align-items: center;
  margin: 0 0 4rem;
  border: 1px solid #dfe7f7;
  border-radius: 16px;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: #edf3ff;
}

.dialer-copy h2,
.external-copy h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -0.035em;
}

.dialer-copy > p:not(.eyebrow),
.external-copy > p:not(.eyebrow) {
  margin: 0.7rem 0 0;
  color: #64728a;
  font-size: 0.9rem;
  line-height: 1.7;
}

.mobile-requirements {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: #315ed3;
  font-size: 0.8rem;
  font-weight: 650;
}

.public-dialer-form,
.external-dialer-form {
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  padding: 1.15rem;
  background: #fff;
}

.public-dialer-form > label,
.external-dialer-form > label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.dialer-input-row {
  display: flex;
  gap: 0.55rem;
}

.dialer-input-row input {
  min-width: 0;
  min-height: 48px;
  font-size: 1rem;
}

.dialer-input-row button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.dialer-note {
  margin: 0.65rem 0 0;
  color: #748198;
  font-size: 0.78rem;
  line-height: 1.5;
}

.external-calls-section {
  display: grid;
  grid-template-columns: auto minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin: 3rem 0 4rem;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: #fff;
}

.external-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #315ed3;
  background: #edf2ff;
  font-size: 1.4rem;
}

.external-dialer-form {
  background: #f8faff;
}

.provider-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid #e8edf5;
  padding-top: 0.9rem;
}

.provider-status > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #64728a;
  font-size: 0.78rem;
  font-weight: 650;
}

.provider-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dda442;
}

.provider-status button {
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
}

.status-dot,
.person-state i,
.person-busy i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20a36a;
}

.demo-preview {
  position: relative;
  overflow: visible;
  border: 1px solid #e1e7f0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 26px 70px rgb(34 57 98 / 15%);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}

.live-call-badge {
  position: absolute;
  z-index: 1;
  top: -25px;
  right: -24px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid #e1e7f0;
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  background: #fff;
  box-shadow: 0 12px 30px rgb(34 57 98 / 16%);
  animation: badge-float 3.2s ease-in-out infinite;
}

.live-call-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #315ed3;
  font-size: 1.25rem;
}

.live-call-icon::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgb(49 94 211 / 40%);
  border-radius: 15px;
  content: "";
  animation: call-pulse 2s ease-out infinite;
}

.live-call-badge strong,
.live-call-badge small {
  display: block;
  white-space: nowrap;
}

.live-call-badge strong {
  color: #172033;
  font-size: 0.8rem;
}

.live-call-badge small {
  margin-top: 0.15rem;
  color: #64728a;
  font-size: 0.7rem;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes call-pulse {
  0% { opacity: 0.8; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.35); }
}

.preview-topbar {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0f5;
  border-radius: 17px 17px 0 0;
  padding: 0 1rem;
  color: #7a879a;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.preview-dots {
  display: flex;
  gap: 4px;
}

.preview-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d7deea;
}

.preview-secure {
  color: #22845c;
  font-size: 0.62rem;
  letter-spacing: 0;
}

.preview-content {
  padding: 1.25rem;
}

.preview-scene-stage {
  display: grid;
}

.preview-scene {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 450ms ease, transform 450ms ease, visibility 450ms;
  visibility: hidden;
}

.preview-scene.is-active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

.preview-scene-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  border-top: 1px solid #edf0f5;
  padding: 0.75rem 1rem;
}

.preview-scene-label {
  margin-right: auto;
  color: #8290a5;
  font-size: 0.7rem;
  font-weight: 650;
}

.preview-scene-dot {
  display: grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.preview-scene-dot::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d3dae6;
  content: "";
  transition: width 250ms ease, background-color 250ms ease;
}

.preview-scene-dot:hover:not(:disabled) {
  background: #edf2ff;
}

.preview-scene-dot.is-active::before {
  width: 22px;
  background: #315ed3;
}

.preview-scene-dot.is-active:hover:not(:disabled)::before {
  background: #315ed3;
}

.video-preview-scene,
.customer-preview-scene {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.video-preview-stage {
  position: relative;
  display: grid;
  min-height: 246px;
  grid-template-columns: 1fr 0.72fr;
  gap: 0.55rem;
  overflow: hidden;
  border-radius: 12px;
  padding: 0.65rem;
  background: #17243b;
}

.video-preview-person {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #536f9e, #273c5d 70%);
}

.video-preview-person::before,
.video-preview-person::after {
  position: absolute;
  bottom: -34%;
  width: 54%;
  height: 74%;
  border-radius: 48% 48% 0 0;
  background: linear-gradient(150deg, rgb(255 255 255 / 72%), rgb(208 220 246 / 45%));
  content: "";
}

.video-preview-person::before {
  left: 4%;
  transform: rotate(9deg);
}

.video-preview-person::after {
  right: 4%;
  transform: rotate(-9deg);
}

.video-preview-you {
  background: linear-gradient(145deg, #9b87cf, #514773 75%);
}

.video-preview-avatar {
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-top: -1.6rem;
  border: 2px solid rgb(255 255 255 / 85%);
  border-radius: 50%;
  color: #344967;
  background: #f0dfc8;
  font-size: 1.5rem;
  font-weight: 750;
  box-shadow: 0 8px 20px rgb(9 17 31 / 18%);
}

.video-preview-person strong,
.video-preview-person small {
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-preview-person strong {
  margin-top: 0.65rem;
  font-size: 0.78rem;
}

.video-preview-person small {
  margin-top: 0.15rem;
  color: rgb(255 255 255 / 78%);
  font-size: 0.64rem;
}

.video-preview-speaking {
  position: absolute;
  z-index: 2;
  top: 0.5rem;
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.28rem 0.45rem;
  color: #e7fff3;
  background: rgb(15 43 39 / 64%);
  font-size: 0.62rem;
}

.video-preview-speaking i,
.customer-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #46d48c;
  box-shadow: 0 0 0 3px rgb(70 212 140 / 18%);
}

.video-preview-caption {
  position: absolute;
  right: 0.8rem;
  bottom: 0.75rem;
  left: 0.8rem;
  border-radius: 7px;
  padding: 0.45rem;
  color: #fff;
  background: rgb(9 17 31 / 68%);
  font-size: 0.68rem;
  text-align: center;
}

.preview-scene-copy {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.scene-step {
  color: #315ed3;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-scene-copy > strong {
  color: #172033;
  font-size: 0.98rem;
}

.preview-scene-copy > p {
  margin: 0;
  color: #64728a;
  font-size: 0.76rem;
  line-height: 1.55;
}

.customer-preview-card {
  display: grid;
  min-height: 246px;
  align-content: space-between;
  gap: 1rem;
  border: 1px solid #e3eaf3;
  border-radius: 12px;
  padding: 1rem;
  background: linear-gradient(145deg, #f8faff, #edf5f2);
}

.customer-preview-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.customer-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #197448;
  background: #dff4e9;
  font-size: 0.82rem;
  font-weight: 750;
}

.customer-preview-heading strong,
.customer-preview-heading small {
  display: block;
}

.customer-preview-heading strong {
  color: #172033;
  font-size: 0.82rem;
}

.customer-preview-heading small {
  margin-top: 0.15rem;
  color: #8290a5;
  font-size: 0.66rem;
}

.customer-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  border-radius: 999px;
  padding: 0.35rem 0.5rem;
  color: #197448;
  background: #e3f6eb;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.customer-call-wave {
  display: flex;
  height: 62px;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.customer-call-wave i {
  width: 5px;
  height: 20%;
  border-radius: 99px;
  background: linear-gradient(#50c989, #315ed3);
  animation: customer-wave 950ms ease-in-out infinite alternate;
}

.customer-call-wave i:nth-child(3n) { animation-delay: -620ms; }
.customer-call-wave i:nth-child(3n + 1) { animation-delay: -300ms; }
.customer-call-wave i:nth-child(4n) { height: 76%; }
.customer-call-wave i:nth-child(5n) { height: 44%; }

@keyframes customer-wave {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

.customer-preview-detail {
  display: grid;
  gap: 0.3rem;
  text-align: center;
}

.customer-preview-detail span {
  color: #718098;
  font-size: 0.68rem;
}

.customer-preview-detail strong {
  color: #172033;
  font-size: 0.95rem;
}

.customer-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e3eaf3;
  padding-top: 0.7rem;
  color: #197448;
  font-size: 0.68rem;
  font-weight: 650;
}

.customer-headset {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #188452;
  font-size: 1.3rem;
  transform: rotate(180deg);
}

.customer-preview-note {
  margin-top: 0.15rem;
  color: #8490a2;
  font-size: 0.64rem;
  line-height: 1.45;
}

.preview-greeting {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #edf0f5;
}

.preview-avatar,
.person-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #315ed3;
  background: #edf2ff;
  font-weight: 750;
}

.preview-greeting strong,
.preview-greeting small,
.preview-call small,
.preview-call strong,
.preview-person strong,
.preview-person small {
  display: block;
}

.preview-greeting small,
.preview-person small,
.preview-call small {
  margin-top: 0.2rem;
  color: #8290a5;
  font-size: 0.75rem;
}

.preview-online {
  margin-left: auto;
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  color: #197448;
  background: #e8f7ef;
  font-size: 0.68rem;
  font-weight: 700;
}

.preview-call {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.2rem;
  border: 1px solid #dfe7f7;
  border-radius: 11px;
  padding: 0.85rem;
  background: #f8faff;
}

.preview-call-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #315ed3;
  font-size: 1.3rem;
}

.preview-arrow {
  margin-left: auto;
  color: #315ed3;
  font-size: 1.2rem;
}

.preview-section-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.83rem;
}

.preview-section-title small {
  color: #8290a5;
  font-size: 0.7rem;
}

.preview-person {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-top: 1px solid #f0f2f6;
  padding: 0.65rem 0;
  font-size: 0.78rem;
}

.person-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.avatar-violet {
  color: #7556c8;
  background: #f1edff;
}

.avatar-amber {
  color: #ad711c;
  background: #fff3df;
}

.person-state,
.person-busy {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  color: #27845e;
  font-size: 0.68rem;
}

.person-state i,
.person-busy i {
  width: 6px;
  height: 6px;
}

.person-busy {
  color: #a36512;
}

.user-item button[data-available="true"] {
  background: #188452;
}

.user-item button[data-available="true"]:hover:not(:disabled) {
  background: #126b41;
}

.person-busy i {
  background: #dda442;
}

.preview-float {
  display: block;
  border-top: 1px solid #edf0f5;
  border-radius: 0 0 17px 17px;
  padding: 0.65rem 1rem;
  color: #315ed3;
  background: #fdfdff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

.features-section {
  padding: 4rem 0 4.5rem;
  border-top: 1px solid #e3e8f0;
}

.section-intro {
  max-width: 650px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-intro h2,
.steps-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.section-intro > p:last-child,
.steps-copy > p:last-child {
  color: #64728a;
  line-height: 1.7;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  border: 1px solid #e1e7f0;
  border-radius: 14px;
  padding: 1.35rem;
  background: #fff;
  box-shadow: 0 8px 24px rgb(21 39 71 / 4%);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 750;
}

.icon-blue {
  color: #315ed3;
  background: #edf2ff;
}

.icon-green {
  color: #197448;
  background: #e8f7ef;
}

.icon-violet {
  color: #7556c8;
  background: #f1edff;
}

.feature-card h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: #64728a;
  font-size: 0.9rem;
  line-height: 1.7;
}

.steps-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
  border-radius: 18px;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: #eaf0fc;
}

.steps-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border: 1px solid #dce5f4;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}

.steps-list li > span {
  color: #315ed3;
  font-size: 0.78rem;
  font-weight: 800;
}

.steps-list strong {
  font-size: 0.92rem;
}

.steps-list p {
  margin: 0.25rem 0 0;
  color: #64728a;
  font-size: 0.83rem;
}

.closing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 4rem 0 1rem;
  border-radius: 18px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  color: #fff;
  background: #1e3158;
}

.closing-cta .eyebrow {
  color: #a9c0ff;
}

.closing-cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.closing-cta p:last-child {
  margin-bottom: 0;
  color: #c1cce0;
  font-size: 0.9rem;
}

.closing-cta .primary-link {
  flex: 0 0 auto;
  color: #20345d;
  background: #fff;
}

.closing-cta .primary-link:hover {
  background: #eaf0fc;
}

.login-panel {
  width: min(100%, 560px);
  margin: 2rem auto 0;
  scroll-margin-top: 2rem;
}

.login-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.login-panel-heading h2 {
  margin-bottom: 0.3rem;
}

.login-panel-heading p:last-child {
  margin: 0;
  color: #64728a;
  font-size: 0.9rem;
}

.close-button {
  width: 36px;
  height: 36px;
  padding: 0;
  color: #53647d;
  background: #edf1f7;
  font-size: 1.4rem;
  line-height: 1;
}

.close-button:hover:not(:disabled) {
  color: #172033;
  background: #e0e7f2;
}

.login-panel form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.3rem;
}

.login-panel form > div {
  display: grid;
  gap: 0.4rem;
}

.login-panel label {
  margin-top: 0;
  font-size: 0.88rem;
  font-weight: 650;
}

.login-panel form button {
  margin-top: 0.3rem;
}

.feedback:empty {
  display: none;
}

.login-panel .feedback {
  margin-top: 0.8rem;
}

.site-footer {
  display: flex;
  width: min(100% - 2rem, 1160px);
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  border-top: 1px solid #e1e7f0;
  padding: 1.25rem 0 2rem;
  color: #8290a5;
  font-size: 0.8rem;
}

.site-footer a {
  color: #64728a;
}

.site-footer a:hover {
  color: #315ed3;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 2rem;
    min-height: 500px;
  }

  .hero-copy h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
  }

  .steps-section {
    gap: 2rem;
  }

  .external-calls-section {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .external-dialer-form {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 1.25rem, 540px);
    padding-top: 1.1rem;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem;
    white-space: nowrap;
  }

  .main-nav > a {
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.82rem;
  }

  .main-nav button {
    flex: 0 0 auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: 0;
    padding: 4rem 0 3.5rem;
  }

  .hero-copy h2 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .demo-preview {
    width: min(100% - 0.75rem, 480px);
    margin: 0 auto;
    transform: none;
  }

  .live-call-badge {
    top: -20px;
    right: -8px;
  }

  .features-section {
    padding: 3rem 0;
  }

  .dialer-section {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 3rem;
  }

  .external-calls-section {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    margin: 2.5rem 0 3rem;
  }

  .external-copy h2 {
    font-size: 1.35rem;
  }

  .external-dialer-form {
    grid-column: 1 / -1;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.15rem;
  }

  .steps-section {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .closing-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 3rem;
  }

  .site-footer {
    width: min(100% - 1.25rem, 540px);
  }

  .footer-links {
    gap: 0.75rem;
  }
}

@media (max-width: 420px) {
  .site-brand {
    gap: 0.5rem;
  }

  .site-brand .eyebrow {
    font-size: 0.55rem;
  }

  .site-brand .brand-mark {
    width: 36px;
    height: 36px;
  }

  .main-nav button {
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
  }

  .dialer-input-row {
    align-items: stretch;
    flex-direction: column;
  }

  .external-calls-section {
    grid-template-columns: 1fr;
  }

  .external-icon {
    width: 42px;
    height: 42px;
  }

  .external-dialer-form {
    grid-column: auto;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}

  @media (prefers-reduced-motion: reduce) {
    .live-call-badge,
    .live-call-icon::after,
    .customer-call-wave i {
      animation: none;
    }

    .preview-scene,
    .preview-scene-dot {
      transition: none;
    }
  }
