:root {
  --bg: #f8fbff;
  --bg-soft: #ffffff;
  --bg-grid: rgba(20, 66, 125, 0.07);
  --text: #16233b;
  --text-soft: #5a6b84;
  --line: rgba(28, 54, 88, 0.1);
  --cyan: #13c8f2;
  --cyan-deep: #12aee1;
  --navy: #1e293b;
  --success: #37c871;
  --shadow-lg: 0 24px 60px rgba(63, 89, 129, 0.14);
  --shadow-md: 0 14px 30px rgba(68, 88, 118, 0.12);
  --wa-header: #0b7b66;
  --wa-header-dark: #0a6d5b;
  --wa-chat-bg: #efe7dd;
  --wa-incoming: #ffffff;
  --wa-outgoing: #d8fdb7;
  --wa-meta: #74828f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
}

.app-shell {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(19, 200, 242, 0.16), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
  padding: 18px;
}

.screen.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.site-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--bg-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.7;
  pointer-events: none;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
}

.ambient-one {
  width: 360px;
  height: 360px;
  top: 64px;
  right: 12%;
  background: rgba(19, 200, 242, 0.18);
}

.ambient-two {
  width: 420px;
  height: 420px;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(19, 200, 242, 0.16);
}

.hook-section {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  animation: bubbleIn 300ms ease-out;
}

.hook-section h2 {
  font-size: 18px;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-weight: 600;
  opacity: 0.85;
}

.chat-layout {
  position: relative;
  z-index: 1;
  width: min(1420px, 100%);
  height: calc(100vh - 120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 392px;
  gap: 18px;
}

.demo-stage,
.insight-panel,
.confirmation-card,
.confirmation-brand {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.demo-stage,
.insight-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-lg);
}

.demo-stage {
  border-radius: 34px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-bar,
.confirmation-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 20px rgba(85, 113, 150, 0.08);
}

.brand-logo {
  display: block;
  height: 24px;
  width: auto;
}

.brand-logo-large {
  height: 30px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19, 200, 242, 0.1);
  border: 1px solid rgba(19, 200, 242, 0.18);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.brand-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 12px rgba(55, 200, 113, 0.45);
}

.iphone-frame {
  width: min(380px, 100%);
  margin: 10px auto 6px;
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(180deg, #3a4656 0%, #151a20 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 28px 70px rgba(32, 38, 51, 0.28);
  position: relative;
  user-select: none;
  transition: transform 220ms ease;
}

.iphone-frame:hover {
  transform: translateY(-2px);
}

.iphone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 26px;
  border-radius: 0 0 18px 18px;
  background: #06080c;
  z-index: 3;
}

.iphone-screen {
  height: min(748px, calc(100vh - 148px));
  min-height: 648px;
  border-radius: 33px;
  overflow: hidden;
  background: var(--wa-chat-bg);
  display: flex;
  flex-direction: column;
}

.wa-statusbar {
  height: 28px;
  background: var(--wa-header-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 0;
  font-size: 13px;
  font-weight: 700;
}

.wa-status-icons {
  display: inline-flex;
  gap: 8px;
  font-size: 11px;
}

.wa-header {
  min-height: 66px;
  background: var(--wa-header);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}

.wa-contact,
.wa-actions {
  display: flex;
  align-items: center;
}

.wa-contact {
  gap: 10px;
}

.wa-back {
  width: 22px;
  height: 22px;
  padding: 0;
  background: transparent;
  position: relative;
}

.wa-back span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  width: 9px;
  height: 9px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #ced7dd;
  color: #273641;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.wa-contact-copy strong {
  display: block;
  font-size: 15px;
}

.wa-contact-copy span {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.wa-actions {
  gap: 14px;
}

.wa-camera,
.wa-phone,
.wa-menu {
  display: inline-block;
  position: relative;
}

.wa-camera {
  width: 18px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 3px;
}

.wa-camera::after {
  content: "";
  position: absolute;
  top: 2px;
  right: -6px;
  width: 5px;
  height: 6px;
  border-radius: 1px;
  background: #ffffff;
}

.wa-phone {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 10px 10px 5px 10px;
  transform: rotate(40deg);
}

.wa-menu {
  width: 4px;
  height: 18px;
  background:
    radial-gradient(circle, #ffffff 2px, transparent 3px) center top/4px 4px no-repeat,
    radial-gradient(circle, #ffffff 2px, transparent 3px) center center/4px 4px no-repeat,
    radial-gradient(circle, #ffffff 2px, transparent 3px) center bottom/4px 4px no-repeat;
}

.wa-chat-bg {
  flex: 1;
  padding: 12px 10px 10px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.15), transparent 20%),
    linear-gradient(rgba(239, 231, 221, 0.92), rgba(239, 231, 221, 0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='rgba(143,124,95,0.18)' stroke-width='1'%3E%3Cpath d='M25 12c8 1 14 8 13 16-1 9 5 14 14 16 9 2 15 8 14 17-1 10-10 16-20 15-9-1-15-10-13-18 1-7-2-11-10-13-10-2-16-10-14-19 2-10 7-16 16-14z'/%3E%3Cpath d='M91 20c7-4 16-2 21 4 5 6 4 13-2 19-7 6-7 12 0 18 7 7 8 15 2 22-7 8-18 8-26 1-7-6-8-16-1-23 5-5 4-10-3-15-10-7-11-17-3-25 4-4 7-4 12-1z'/%3E%3Cpath d='M48 86c7-6 18-5 24 2 6 7 13 8 20 2 8-7 18-6 24 1 7 8 5 19-4 26-8 6-18 5-24-2-5-6-11-7-18-2-10 8-22 6-28-4-5-10-3-18 6-23z'/%3E%3C/g%3E%3C/svg%3E");
}

.wa-chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.message-row {
  display: flex;
}

.message-row.outgoing {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 82%;
  padding: 7px 9px 8px;
  border-radius: 8px;
  color: #17212b;
  font-size: 13px;
  line-height: 1.38;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  animation: bubbleIn 260ms ease-out;
}

.message-row.incoming .message-bubble {
  background: var(--wa-incoming);
  border-top-left-radius: 0;
}

.message-row.outgoing .message-bubble {
  background: var(--wa-outgoing);
  border-top-right-radius: 0;
}

.message-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  float: right;
  color: var(--wa-meta);
  font-size: 10px;
  transform: translateY(5px);
}

.message-checks {
  color: #5db0ff;
  letter-spacing: -0.12em;
}

.wa-input {
  min-height: 58px;
  padding: 8px 10px 10px;
  display: grid;
  grid-template-columns: 20px 1fr 16px 16px 42px;
  align-items: center;
  gap: 10px;
  background: #f0f2f5;
}

.wa-input-pill {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #95a1ac;
  font-size: 14px;
}

.wa-emoji,
.wa-attach,
.wa-camera-small {
  position: relative;
  width: 18px;
  height: 18px;
}

.wa-emoji::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 2px solid #8595a2;
  border-radius: 999px;
}

.wa-emoji::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 5px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #8595a2;
  border-radius: 0 0 8px 8px;
}

.wa-attach::before {
  content: "";
  position: absolute;
  inset: 2px 5px;
  border: 2px solid #8595a2;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  transform: rotate(40deg);
}

.wa-camera-small::before {
  content: "";
  position: absolute;
  inset: 4px 2px;
  border: 2px solid #8595a2;
  border-radius: 4px;
}

.wa-camera-small::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #8595a2;
}

.wa-mic {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #00a884;
  display: grid;
  place-items: center;
}

.wa-mic span {
  position: relative;
  width: 10px;
  height: 16px;
  border-radius: 8px;
  background: #ffffff;
}

.wa-mic span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 6px;
  border: 2px solid #ffffff;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  transform: translateX(-50%);
}

.tap-hint {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  margin-top: 0;
  color: var(--text-soft);
  font-size: 11px;
  text-align: center;
}

.tap-hint strong {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.insight-panel {
  border-radius: 34px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
}

.panel-kicker {
  color: var(--cyan-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-panel h1 {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.panel-intro {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.stepper-card,
.value-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 20px;
}

.stepper-card {
  background: linear-gradient(180deg, rgba(19, 200, 242, 0.1), rgba(19, 200, 242, 0.04));
  border: 1px solid rgba(19, 200, 242, 0.18);
}

.stepper-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.step-label,
.insight-label,
.value-label,
.business-label {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stepper-copy strong {
  font-size: 16px;
}

.step-meter {
  margin-top: 10px;
  height: 7px;
  border-radius: 999px;
  background: rgba(28, 54, 88, 0.08);
  overflow: hidden;
}

.step-meter-fill {
  height: 100%;
  width: 16.66%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #5ad3ff);
  transition: width 240ms ease;
}

.insight-stack {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.insight-card,
.signal-chip,
.business-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(28, 54, 88, 0.08);
}

.insight-card {
  padding: 12px 12px 14px;
  border-radius: 16px;
}

.insight-card.is-accent {
  background: linear-gradient(180deg, rgba(19, 200, 242, 0.12), rgba(19, 200, 242, 0.06));
  border-color: rgba(19, 200, 242, 0.18);
}

.insight-card strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.28;
}

.signal-board,
.business-grid {
  display: grid;
  gap: 10px;
}

.signal-board {
  margin-top: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signal-chip {
  padding: 10px;
  border-radius: 14px;
}

.signal-chip strong {
  display: block;
  font-size: 12px;
}

.signal-chip span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.25;
}

.value-card {
  margin-top: auto;
  background: var(--navy);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.value-card .value-label {
  color: rgba(255, 255, 255, 0.72);
}

.value-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
}

.value-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.45;
}

.confirmation-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  height: calc(100vh - 36px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.confirmation-card {
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-lg);
  padding: 34px 36px 30px;
  text-align: center;
}

.confirmation-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(19, 200, 242, 0.14), rgba(19, 200, 242, 0.08));
  border: 1px solid rgba(19, 200, 242, 0.2);
  color: var(--cyan-deep);
  font-size: 34px;
  font-weight: 800;
}

.confirmation-kicker {
  margin: 20px 0 0;
  color: var(--cyan-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirmation-card h2 {
  max-width: 760px;
  margin: 14px auto 0;
  font-size: 50px;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.confirmation-time {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 700;
}

.confirmation-copy {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.6;
}

.business-grid {
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.business-card {
  padding: 18px;
  border-radius: 22px;
}

.business-card strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.35;
}

.business-impact-msg {
  margin: 24px auto 0;
  max-width: 420px;
  text-align: left;
  background: rgba(55, 200, 113, 0.08);
  padding: 16px 24px;
  border-radius: 18px;
  border: 1px solid rgba(55, 200, 113, 0.25);
}

.business-impact-msg p {
  margin: 8px 0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
}

.action-group {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.primary-cta {
  min-width: 270px;
  padding: 17px 28px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--cyan) 0%, #21b7ff 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(19, 200, 242, 0.24);
}

.secondary-cta {
  background: transparent;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px;
  transition: color 200ms ease;
}

.secondary-cta:hover {
  color: var(--navy);
  text-decoration: underline;
}

.secondary-cta.is-muted {
  font-size: 12px;
  opacity: 0.55;
  margin-top: -4px;
}

.cta-urgency {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.75;
}

.fade-in {
  animation: bubbleIn 700ms ease-out backwards;
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

/* UX Enhancements */
.hotspot-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  pointer-events: none; /* Let clicks pass through to the frame */
}

.hotspot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(19, 200, 242, 0.25);
  border: 2px solid rgba(19, 200, 242, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(19, 200, 242, 0.4); }
  70% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 15px rgba(19, 200, 242, 0); }
  100% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(19, 200, 242, 0); }
}

.ripple-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 33px;
}

.ripple {
  position: absolute;
  background: rgba(19, 200, 242, 0.4);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: ripple-effect 600ms linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  from { width: 0; height: 0; opacity: 0.5; }
  to { width: 800px; height: 800px; opacity: 0; }
}

.typing-indicator {
  padding: 8px 12px;
  background: var(--wa-incoming);
  border-radius: 8px;
  border-top-left-radius: 0;
  display: inline-flex;
  gap: 4px;
  align-self: flex-start;
  margin-bottom: 6px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  animation: bubbleIn 300ms ease-out;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #95a1ac;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 200ms; }
.typing-dot:nth-child(3) { animation-delay: 400ms; }

@keyframes typing {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}

.bounce-hint {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@media (max-width: 1180px) {

  html,
  body {
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
  }

  .screen {
    position: relative;
    min-height: 100vh;
  }

  .chat-layout {
    height: auto;
    min-height: calc(100vh - 36px);
    grid-template-columns: 1fr;
  }

  .confirmation-shell {
    height: auto;
    min-height: calc(100vh - 36px);
  }
}