/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
  color: #333;
  background: #fff;
}

/* Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f5f5f4;
  color: #78716c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: #57534e;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  color: #0d9488;
}

.website-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #0d9488;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.website-link:hover {
  text-decoration: underline;
}

.value-grid,
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.value-card,
.preview-card {
  padding: 18px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e7e5e4;
  text-align: left;
}

.value-card h3,
.preview-card h3 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1c1917;
}

.value-card p,
.preview-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #57534e;
}

.preview-list {
  margin: 12px 0 0;
  padding-left: 1.1em;
  font-size: 14px;
  line-height: 1.7;
}

.preview-list li + li {
  margin-top: 6px;
}

.preview-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.preview-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 12px;
  font-weight: 600;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #0f766e;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.preview-link:hover {
  background: #f0fdfa;
}

.preview-link.is-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.preview-link.is-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.preview-section {
  background: #f8fafc;
}

.preview-section .container {
  max-width: 1120px;
}

.preview-section__intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.preview-section__intro p {
  font-size: 16px;
  color: #475569;
}

.preview-section__note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #ecfeff;
  color: #155e75;
  font-size: 14px;
  line-height: 1.7;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px;
}

.hero h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero .subtitle {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.95;
}

.hero .description {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero .price {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
}

.hero .limit {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.chat-demo-hero {
  min-height: 100vh;
  padding: 32px 20px;
  background: #fafaf9;
  display: flex;
  align-items: center;
}

.chat-demo-layout {
  max-width: 1600px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.chat-demo-copy {
  max-width: 860px;
  margin: 0 auto;
}

.chat-demo-copy h1 {
  font-size: 28px;
  line-height: 1.3;
  color: #1c1917;
  margin-bottom: 12px;
}

.chat-demo-copy .subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: #57534e;
  margin-bottom: 8px;
}

.chat-demo-copy .description {
  font-size: 15px;
  line-height: 1.7;
  color: #78716c;
}

.chat-demo-stage {
  min-height: 0;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: #f97316;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 16px 48px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.cta-button:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

/* Section */
section {
  padding: 60px 20px;
}

section h2 {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

/* Problem Section */
.problem {
  background: #f9fafb;
}

.problem-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
}

.problem-list li {
  font-size: 16px;
  padding: 16px 16px 16px 40px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.problem-list li::before {
  content: "✗";
  position: absolute;
  left: 16px;
  color: #ef4444;
  font-weight: bold;
  font-size: 18px;
}

.problem .solution {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin-top: 32px;
  color: #0d9488;
}

/* Value Section */
.value-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.value-list li {
  margin-bottom: 32px;
}

.value-list li strong {
  display: block;
  font-size: 18px;
  color: #0d9488;
  margin-bottom: 8px;
  padding-left: 28px;
  position: relative;
}

.value-list li strong::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 20px;
}

.value-list li p {
  font-size: 16px;
  color: #666;
  padding-left: 28px;
}

/* Scope Section */
.scope {
  background: #f9fafb;
}

.scope-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.scope-box {
  background: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.scope-box h3 {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.scope-box.can {
  border-top: 4px solid #10b981;
}

.scope-box.can h3 {
  color: #10b981;
}

.scope-box.cannot {
  border-top: 4px solid #ef4444;
}

.scope-box.cannot h3 {
  color: #ef4444;
}

.scope-box ul {
  list-style: none;
}

.scope-box ul li {
  font-size: 16px;
  padding: 10px 0 10px 28px;
  position: relative;
}

.scope-box.can ul li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 18px;
}

.scope-box.cannot ul li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: bold;
  font-size: 18px;
}

.scope-note {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 24px;
}

/* Pricing Section */
.pricing-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.pricing-box {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-box:hover {
  border-color: #0d9488;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.pricing-box h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #333;
}

.pricing-box .price {
  font-size: 32px;
  font-weight: bold;
  color: #0d9488;
  margin-bottom: 24px;
  line-height: 1.2;
}

.pricing-box .price .tax {
  font-size: 16px;
  font-weight: normal;
  color: #666;
}

.pricing-box ul {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-box ul li {
  font-size: 15px;
  padding: 8px 0;
  color: #666;
}

.pricing-limit {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #ef4444;
}

/* Flow Section */
.flow {
  background: #f9fafb;
}

.flow-container {
  max-width: 700px;
  margin: 0 auto;
}

.flow-step {
  background: #fff;
  padding: 24px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  padding-left: 80px;
}

.flow-step::before {
  content: attr(data-step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 44px;
  height: 44px;
  background: #0d9488;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 11px;
}

.flow-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.flow-step p {
  font-size: 15px;
  color: #666;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #0d9488;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
}

.faq-item h3 {
  font-size: 17px;
  color: #333;
  margin-bottom: 12px;
  font-weight: bold;
}

.faq-item p {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
}

/* Final CTA Section */
.final-cta {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.final-cta h2 {
  color: #fff;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}

/* Contact Section */
.contact {
  background: #f9fafb;
  text-align: center;
}

.contact p {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
}

.contact-info {
  font-size: 15px;
  color: #666;
  margin-top: 32px;
}

.contact-info p {
  margin-bottom: 8px;
}

/* Chat Widget */
.chat-widget-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0d9488;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.chat-widget-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}

.chat-widget-toggle.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
}

.chat-widget-toggle__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.chat-widget-toggle__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chat-widget-panel {
  text-align: left;
  padding: 0;
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 560px;
  max-height: calc(100vh - 120px);
  z-index: 999;
  background: #ffffff;
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: 16px;
  box-shadow: 
    0 20px 60px rgba(28, 25, 23, 0.12),
    0 8px 24px rgba(28, 25, 23, 0.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.chat-widget-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-widget-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  color: #78716c;
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
  flex-shrink: 0;
}

.chat-widget-header h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0;
}

.chat-widget-close {
  border: none;
  background: transparent;
  color: #a8a29e;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-widget-close:hover {
  background: rgba(28, 25, 23, 0.06);
  color: #57534e;
}

.chat-widget-log {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  min-height: 0;
}

.chat-widget-log::-webkit-scrollbar {
  width: 8px;
}

.chat-widget-log::-webkit-scrollbar-track {
  background: transparent;
}

.chat-widget-log::-webkit-scrollbar-thumb {
  background: rgba(28, 25, 23, 0.15);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.chat-widget-log::-webkit-scrollbar-thumb:hover {
  background: rgba(28, 25, 23, 0.25);
  background-clip: padding-box;
}

.chat-widget-empty-state {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
  flex: 1;
  padding: 0;
  gap: 12px;
}

.chat-widget-empty-state__icon {
  display: none;
}

.chat-widget-empty-state__title {
  display: none;
}

.chat-widget-empty-state__description {
  font-size: 14px;
  line-height: 1.6;
  color: #44403c;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(28, 25, 23, 0.06);
  white-space: pre-line;
  align-self: flex-start;
  max-width: 85%;
}

.chat-widget-msg {
  max-width: 85%;
  border-radius: 18px;
  padding: 13px 17px;
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 14px;
  word-wrap: break-word;
  position: relative;
}

.chat-widget-msg__content {
  white-space: normal;
}

.chat-widget-msg__content p {
  margin: 0;
}

.chat-widget-msg__content p + p {
  margin-top: 8px;
}

.chat-widget-media {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.chat-widget-media__item {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.04);
  color: inherit;
  text-decoration: none;
}

.chat-widget-media__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.chat-widget-media__caption {
  display: block;
  padding: 10px 12px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(30, 41, 59, 0.88);
}

.chat-widget-msg__content ul {
  margin: 6px 0 0 1.1em;
  padding: 0;
}

.chat-widget-msg__content li + li {
  margin-top: 4px;
}

.chat-widget-msg__content a {
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-widget-msg.is-user .chat-widget-msg__content a {
  color: #dcfce7;
}

.chat-widget-msg__content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.08);
}

.chat-widget-msg__content pre {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  overflow-x: auto;
}

.chat-widget-msg__content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.chat-widget-msg.is-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
  font-weight: 500;
}

.chat-widget-msg.is-bot {
  align-self: flex-start;
  background: #f8fafc;
  color: #1c1917;
  border: 1px solid rgba(28, 25, 23, 0.06);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.chat-widget-msg.is-error {
  align-self: flex-start;
  background: #fef2f2;
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991b1b;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.1);
}

.chat-widget-msg.is-pending {
  align-self: flex-start;
  background: #ffffff;
  color: #78716c;
  border: 1px solid rgba(28, 25, 23, 0.1);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.06);
}

.chat-widget-msg.is-pending::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: chatDots 1.4s infinite ease-in-out;
}

@keyframes chatDots {
  0%, 80%, 100% { 
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% { 
    opacity: 1;
    transform: scale(1);
  }
}

.chat-widget-form {
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(28, 25, 23, 0.08);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.chat-widget-form__row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: #ffffff;
  border: 1.5px solid rgba(28, 25, 23, 0.08);
  border-radius: 16px;
  padding: 4px;
  transition: all 0.2s ease;
}

.chat-widget-form__row:focus-within {
  border-color: #0d9488;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.chat-widget-turnstile-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-widget-turnstile {
  min-height: 0;
}

.chat-widget-turnstile-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #78716c;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-widget-form textarea {
  flex: 1;
  min-height: 48px;
  max-height: 120px;
  resize: none;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  font-family: inherit;
  background: transparent;
}

.chat-widget-form textarea:focus {
  outline: 2px solid rgba(13, 148, 136, 0.32);
  outline-offset: 2px;
}

.chat-widget-form textarea::placeholder {
  color: #a8a29e;
}

.chat-widget-send {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  min-height: 44px;
  box-shadow: 0 1px 4px rgba(13, 148, 136, 0.16);
  letter-spacing: -0.01em;
}

.chat-widget-send:hover:not(:disabled) {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  box-shadow: 0 3px 12px rgba(13, 148, 136, 0.32);
}

.chat-widget-send:active:not(:disabled) {
  transform: scale(0.98);
}

.chat-widget-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.chat-widget-starter-prompts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-widget-starter-prompt {
  padding: 14px 16px;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #44403c;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.06);
}

.chat-widget-starter-prompt:hover {
  border-color: #0d9488;
  background: #f0fdfa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.16);
}

@media (min-width: 769px) {
  /* Root LP desktop/tablet: compact widget with tighter proportions */
  body:not(.chat-demo-page) .chat-widget-panel {
    width: 400px;
    height: 580px;
  }

  body:not(.chat-demo-page) .chat-widget-header {
    padding: 12px 16px;
    background: transparent;
    border-bottom-color: rgba(28, 25, 23, 0.06);
  }

  body:not(.chat-demo-page) .chat-widget-header h3 {
    font-size: 13px;
    font-weight: 600;
  }

  body:not(.chat-demo-page) .chat-widget-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    color: #a8a29e;
  }

  body:not(.chat-demo-page) .chat-widget-close:hover {
    background: rgba(28, 25, 23, 0.06);
    color: #57534e;
  }

  body:not(.chat-demo-page) .chat-widget-log {
    padding: 20px 16px 16px;
    gap: 12px;
    background: #ffffff;
  }

  body:not(.chat-demo-page) .chat-widget-empty-state {
    width: 100%;
    padding: 0;
    align-items: stretch;
    text-align: left;
    gap: 12px;
  }

  body:not(.chat-demo-page) .chat-widget-empty-state__icon {
    display: none;
  }

  body:not(.chat-demo-page) .chat-widget-empty-state__title {
    display: none;
  }

  body:not(.chat-demo-page) .chat-widget-empty-state__description {
    max-width: 85%;
    font-size: 14px;
    line-height: 1.6;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(28, 25, 23, 0.06);
  }

  body:not(.chat-demo-page) .chat-widget-msg {
    max-width: 80%;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 16px;
  }

  body:not(.chat-demo-page) .chat-widget-msg.is-user {
    background: #0d9488;
  }

  body:not(.chat-demo-page) .chat-widget-msg.is-bot {
    background: #f8fafc;
    border-color: rgba(28, 25, 23, 0.06);
    box-shadow: none;
  }

  body:not(.chat-demo-page) .chat-widget-form {
    padding: 0;
    background: #ffffff;
  }

  body:not(.chat-demo-page) .chat-widget-form__row {
    padding: 12px 16px;
    border-radius: 0;
    align-items: flex-end;
    background: #ffffff;
    border: none;
    border-top: 1px solid rgba(28, 25, 23, 0.06);
  }

  body:not(.chat-demo-page) .chat-widget-form__row:focus-within {
    border-top-color: rgba(13, 148, 136, 0.3);
    box-shadow: none;
  }

  body:not(.chat-demo-page) .chat-widget-turnstile-wrap {
    padding: 0 16px;
  }

  body:not(.chat-demo-page) .chat-widget-form textarea {
    min-height: 44px;
    max-height: 120px;
    padding: 0;
    font-size: 14px;
  }

  body:not(.chat-demo-page) .chat-widget-send {
    min-width: 80px;
    min-height: 40px;
    padding: 10px 18px;
    font-size: 14px;
    align-self: flex-end;
    box-shadow: none;
  }

  body:not(.chat-demo-page) .chat-widget-starter-prompts {
    gap: 8px;
  }

  body:not(.chat-demo-page) .chat-widget-starter-prompt {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
  }
}

@media (min-width: 1024px) {
  .chat-demo-hero {
    text-align: left;
    padding: 40px 32px;
  }

  .chat-demo-layout {
    grid-template-columns: minmax(320px, 38%) minmax(0, 1fr);
    gap: 56px;
    align-items: stretch;
  }

  .chat-demo-copy {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .chat-demo-copy h1 {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .chat-demo-copy .subtitle {
    font-size: 19px;
    margin-bottom: 10px;
  }

  .chat-demo-copy .description {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .chat-demo-stage {
    display: flex;
    align-items: stretch;
    min-height: min(88vh, 800px);
  }

  .chat-demo-page .chat-widget-toggle {
    display: none;
  }

  .chat-demo-page .chat-widget-panel,
  .chat-demo-page .chat-widget-panel.is-open {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    top: auto;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(28, 25, 23, 0.1);
    box-shadow: 
      0 20px 60px rgba(28, 25, 23, 0.12),
      0 8px 24px rgba(28, 25, 23, 0.08);
    background: #ffffff;
  }

  .chat-demo-page .chat-widget-header {
    padding: 12px 20px;
    background: transparent;
    color: #78716c;
    border-bottom: 1px solid rgba(28, 25, 23, 0.06);
  }

  .chat-demo-page .chat-widget-header h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .chat-demo-page .chat-widget-close {
    display: none;
  }

  .chat-demo-page .chat-widget-log {
    padding: 24px 20px 20px;
    gap: 14px;
    min-height: 0;
    background: transparent;
  }

  .chat-demo-page .chat-widget-empty-state {
    flex: 1;
    justify-content: flex-start;
    align-items: stretch;
    text-align: left;
    padding: 0;
    gap: 12px;
  }

  .chat-demo-page .chat-widget-empty-state__icon {
    display: none;
  }

  .chat-demo-page .chat-widget-empty-state__title {
    display: none;
  }

  .chat-demo-page .chat-widget-empty-state__description {
    max-width: 82%;
    font-size: 14px;
    line-height: 1.6;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(28, 25, 23, 0.06);
  }

  .chat-demo-page .chat-widget-msg {
    max-width: 80%;
    padding: 12px 15px;
    font-size: 14px;
  }

  .chat-demo-page .chat-widget-form {
    padding: 0;
    gap: 10px;
    background: #ffffff;
  }

  .chat-demo-page .chat-widget-form__row {
    padding: 12px 20px;
    border: none;
    border-top: 1px solid rgba(28, 25, 23, 0.06);
    border-radius: 0;
  }

  .chat-demo-page .chat-widget-form__row:focus-within {
    border-top-color: rgba(13, 148, 136, 0.3);
    box-shadow: none;
  }

  .chat-demo-page .chat-widget-turnstile-wrap {
    padding: 0 20px;
  }

  .chat-demo-page .chat-widget-form textarea {
    min-height: 44px;
    max-height: 120px;
    padding: 0;
    font-size: 14px;
    border: none;
    border-radius: 0;
  }

  .chat-demo-page .chat-widget-form textarea:focus {
    border: none;
    box-shadow: none;
  }

  .chat-demo-page .chat-widget-send {
    min-width: 80px;
    min-height: 40px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
  }

  .chat-demo-page.chat-demo-floating .chat-demo-layout {
    grid-template-columns: minmax(0, 760px);
    gap: 0;
  }

  .chat-demo-page.chat-demo-floating .chat-demo-copy {
    max-width: 760px;
  }

  .chat-demo-page.chat-demo-floating .chat-demo-stage {
    display: contents;
    min-height: 0;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-toggle {
    display: inline-flex;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-toggle--preview {
    right: 28px;
    bottom: 28px;
    padding: 14px 20px;
    border-radius: 999px;
    background: #0d9488;
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.24);
  }

  .chat-demo-page.chat-demo-floating .chat-widget-toggle--preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(13, 148, 136, 0.28);
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview,
  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview.is-open {
    position: fixed;
    right: 28px;
    bottom: 92px;
    left: auto;
    top: auto;
    width: min(436px, calc(100vw - 36px));
    max-width: min(436px, calc(100vw - 36px));
    height: min(64vh, calc(100vh - 104px));
    max-height: min(64vh, calc(100vh - 104px));
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    border-radius: 14px;
    overflow: hidden;
    border: none;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(28, 25, 23, 0.12);
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-header {
    padding: 0 8px 0 10px;
    min-height: 34px;
    background: transparent;
    border-bottom: 1px solid rgba(28, 25, 23, 0.06);
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-header h3 {
    font-size: 12px;
    font-weight: 600;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-log {
    flex: 1;
    min-height: 0;
    padding: 8px 8px 0;
    gap: 8px;
    background: transparent;
    overflow-y: auto;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-empty-state {
    flex: 1;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 12px 12px 8px;
    gap: 8px;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-empty-state__icon,
  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-empty-state__title {
    display: none;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-empty-state__description {
    max-width: 80%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    background: #f5f5f4;
    border: none;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.5;
    color: #44403c;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-starter-prompts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    align-self: flex-end;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-starter-prompt {
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(13, 148, 136, 0.3);
    box-shadow: none;
    font-size: 13px;
    line-height: 1.4;
    color: #0d9488;
    width: auto;
    text-align: left;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-starter-prompt:hover {
    border-color: #0d9488;
    background: #f0fdfa;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-msg {
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-msg.is-intro {
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-msg.is-intro .chat-widget-msg__content {
    padding: 10px 12px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    background: #f5f5f4;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-msg.is-user {
    border-bottom-right-radius: 4px;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-msg.is-bot,
  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-msg.is-error {
    border-bottom-left-radius: 4px;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-msg.is-bot {
    background: #f8fafc;
    border: none;
    box-shadow: none;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-media {
    gap: 8px;
    margin-top: 10px;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-media__item {
    border: none;
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(28, 25, 23, 0.06);
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-media__caption {
    padding: 10px 12px 12px;
    font-size: 12px;
    line-height: 1.5;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-form {
    margin-top: auto;
    padding: 0;
    gap: 0;
    border-top: 1px solid rgba(28, 25, 23, 0.06);
    background: #ffffff;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-starter-prompts.is-composer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 6px 8px 0 10px;
    align-self: stretch;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-starter-prompts.is-composer .chat-widget-starter-prompt {
    width: auto;
    max-width: 100%;
    padding: 7px 10px;
    font-size: 12px;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-turnstile-wrap {
    padding: 4px 8px 0;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-turnstile-status {
    font-size: 10px;
    color: #78716c;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-form__row {
    gap: 6px;
    padding: 8px 8px 8px 10px;
    border-radius: 0;
    border: none;
    background: #ffffff;
    box-shadow: none;
    align-items: flex-end;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-form__row:focus-within {
    box-shadow: none;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-form textarea {
    min-height: 36px;
    height: 36px;
    max-height: 120px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 15px;
    line-height: 24px;
    resize: none;
    overflow-y: hidden;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-form textarea:focus {
    box-shadow: none;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-send {
    min-width: 56px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: none;
    align-self: center;
    flex-shrink: 0;
  }

}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero .subtitle {
    font-size: 16px;
  }

  .hero .price {
    font-size: 24px;
  }

  section {
    padding: 50px 20px;
  }

  section h2 {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .scope-container,
  .pricing-container,
  .value-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .cta-button {
    font-size: 16px;
    padding: 14px 36px;
  }

  .flow-step {
    padding-left: 24px;
    padding-top: 72px;
  }

  .flow-step::before {
    left: 50%;
    transform: translateX(-50%);
    top: 16px;
  }

  .value-list li {
    margin-bottom: 24px;
  }

  .problem-list li {
    font-size: 15px;
  }

  .faq-item h3 {
    font-size: 16px;
  }

  .faq-item p {
    font-size: 15px;
  }

  .chat-widget-toggle {
    right: 16px;
    bottom: 16px;
    padding: 12px 16px;
  }

  .chat-widget-toggle__label {
    display: none;
  }

  .chat-widget-panel {
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: #ffffff;
  }

  .chat-widget-form__row {
    flex-direction: row;
    align-items: flex-end;
    padding: 12px 16px;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(28, 25, 23, 0.06);
  }

  .chat-widget-send {
    width: auto;
    border-radius: 10px;
    box-shadow: none;
  }

  .chat-widget-header {
    padding: max(env(safe-area-inset-top), 16px) 16px 16px 16px;
  }

  .chat-widget-log {
    padding: 16px;
    gap: 12px;
  }

  .chat-widget-msg {
    max-width: 82%;
    font-size: 14px;
    padding: 12px 15px;
  }

  .chat-widget-form {
    padding: 0;
    padding-bottom: max(env(safe-area-inset-bottom), 0px);
  }

  .chat-widget-turnstile-wrap {
    padding: 0 16px 10px;
  }

  .chat-widget-form textarea {
    font-size: 16px;
    min-height: 44px;
  }

  .chat-widget-send {
    min-height: 40px;
    padding: 10px 18px;
  }
}

/* Brand-specific styling */
body[data-brand="roots"] .chat-demo-hero {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 50%, #fef9c3 100%);
}

body[data-brand="roots"] .eyebrow {
  background: #fef9c3;
  color: #854d0e;
}

body[data-brand="roots"] .back-link:hover {
  color: #ca8a04;
}

body[data-brand="nest"] .chat-demo-hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
}

body[data-brand="nest"] .eyebrow {
  background: #dbeafe;
  color: #1e40af;
}

body[data-brand="nest"] .back-link:hover {
  color: #0369a1;
}
