/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --bg: #f3f6f2;
  --bg-alt: #e6eee7;
  --surface: #fbfdf9;
  --line: rgba(32, 57, 52, 0.11);
  --line-strong: rgba(32, 57, 52, 0.2);
  --text: #203934;
  --muted: #5c716d;
  --muted-light: #8ea19d;
  --accent: #1f5e58;
  --accent-strong: #184944;
  --accent-bg: rgba(31, 94, 88, 0.08);
  --shadow-sm: 0 2px 8px rgba(32, 57, 52, 0.07);
  --shadow: 0 8px 28px rgba(32, 57, 52, 0.09);
  --shadow-lg: 0 20px 60px rgba(32, 57, 52, 0.11);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

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

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.4vw, 28px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--accent-strong);
  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: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

.website-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--accent);
  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: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
}

.value-card h3,
.preview-card h3 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.value-card p,
.preview-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.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: var(--surface);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.preview-link:hover {
  background: rgba(31, 94, 88, 0.06);
}

.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: var(--bg-alt);
}

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

.preview-section__intro {
  max-width: min(72vw, 760px);
  margin-bottom: 28px;
}

.preview-section__intro p {
  font-size: 16px;
  color: var(--muted);
}

.preview-section__note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--accent-bg);
  color: var(--accent-strong);
  font-size: 14px;
  line-height: 1.7;
}

/* Hero Section */
.hero {
  color: var(--text);
  background: linear-gradient(180deg, #f7f8f5 0%, #f4f6f2 100%);
  text-align: left;
  padding: 54px 20px 32px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  justify-content: center;
  align-items: stretch;
  gap: clamp(22px, 3vw, 38px);
  max-width: 1320px;
  margin: 0 auto;
}

.hero-copy {
  min-height: 100%;
  padding: clamp(8px, 1.2vw, 16px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: transparent;
  box-shadow: none;
}

.hero-media {
  justify-self: end;
  width: 100%;
  max-width: 420px;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  background: transparent;
  box-shadow: none;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-generic {
  padding: 62px 20px 44px;
}

.hero-generic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
  max-width: 1320px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.text-link {
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.hero-summary {
  display: grid;
  gap: 12px;
}

.summary-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.summary-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.summary-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.summary-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.hero .eyebrow {
  margin-bottom: 22px;
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 500;
  padding: 0;
  background: transparent;
  box-shadow: none;
  letter-spacing: 0;
  color: var(--accent-strong);
}

.hero h1 {
  font-size: clamp(27px, 2.3vw, 35px);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin-left: 0;
  margin-right: 0;
  white-space: normal;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero .subtitle {
  font-size: clamp(17px, 1.55vw, 21px);
  margin-bottom: 28px;
  color: var(--text);
  max-width: 720px;
  margin-left: 0;
  margin-right: 0;
  line-height: 1.45;
  white-space: normal;
}

.hero .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 296px;
  width: fit-content;
  align-self: flex-start;
  min-height: 70px;
  padding: 18px 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f5e58 0%, #184944 100%);
  box-shadow: 0 18px 34px rgba(24, 73, 68, 0.18);
  font-size: 17px;
  font-weight: 700;
}

.hero .description {
  font-size: 16px;
  margin-bottom: 32px;
  color: var(--muted);
  max-width: min(72vw, 760px);
  margin-left: auto;
  margin-right: auto;
}

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

.hero .limit {
  font-size: 16px;
  margin-bottom: 32px;
  color: var(--muted);
}

.chat-demo-hero {
  min-height: 100vh;
  padding: 32px 20px;
  background: var(--bg);
  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: min(84vw, 1040px);
  margin: 0 auto;
}

.chat-demo-copy h1 {
  font-size: 28px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.chat-demo-copy .subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 8px;
}

.chat-demo-copy .description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-light);
}

.chat-demo-hint {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

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

/* CTA Button */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fffdf9;
  font-size: 18px;
  font-weight: bold;
  padding: 16px 48px;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(24, 73, 68, 0.28);
}

.cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 73, 68, 0.38);
}

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

section h2 {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 44px;
  color: var(--text);
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* Problem Section */
.problem {
  background: var(--bg-alt);
}

.problem-list {
  list-style: none;
  max-width: min(78vw, 840px);
  margin: 0 auto;
}

.problem-list li {
  font-size: 16px;
  padding: 18px 20px 18px 48px;
  margin-bottom: 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  line-height: 1.65;
}

.problem-list li::before {
  content: "…";
  position: absolute;
  left: 18px;
  top: 17px;
  color: var(--muted-light);
  font-weight: bold;
  font-size: 18px;
  letter-spacing: -2px;
}

.problem .solution {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin-top: 32px;
  color: var(--accent);
}

/* Value Section */
.value {
  background: var(--surface);
}

.value-lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
  text-align: center;
  max-width: min(86vw, 720px);
  margin: 0 auto 20px;
}

.value-visual {
  margin: 28px auto 0;
  text-align: center;
}

.value-visual img {
  display: inline-block;
  width: min(100%, 920px);
  height: auto;
}

.value-list {
  list-style: none;
  max-width: min(78vw, 960px);
  margin: 0 auto;
}

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

.value-list li strong {
  display: block;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
  padding-left: 28px;
  position: relative;
}

.value-list li strong::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 20px;
}

.value-list li p {
  font-size: 16px;
  color: var(--muted);
  padding-left: 28px;
}

/* Features Section */
.features {
  background: var(--bg-alt);
}

.industries {
  background: var(--bg-alt);
}

.section-heading {
  max-width: min(84vw, 760px);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 14px;
}

.section-heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

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

.industry-card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.industry-card.is-featured {
  border-color: var(--line-strong);
}

.industry-label {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.industry-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.industry-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.industry-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.industry-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.feature-list {
  list-style: none;
  max-width: min(78vw, 760px);
  margin: 0 auto;
}

.feature-list li {
  font-size: 16px;
  padding: 16px 20px 16px 48px;
  margin-bottom: 10px;
  background: var(--surface);
  border-radius: var(--radius-md);
  position: relative;
  border: 1px solid var(--line);
  line-height: 1.65;
}

.feature-list li::before {
  content: "◇";
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--accent);
  font-size: 14px;
}

.feature-visual {
  margin: 28px auto 0;
  text-align: center;
}

.feature-visual img {
  display: inline-block;
  width: min(100%, 920px);
  height: auto;
}

/* Differentiator Section */
.differentiator {
  background: var(--surface);
}

.differentiator-title {
  margin-top: 32px;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--muted);
}

.differentiator-lead {
  max-width: min(86vw, 720px);
  margin: 40px auto 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  text-align: center;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

/* Scope Section */
.scope {
  background: var(--bg-alt);
}

.scope-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: min(82vw, 980px);
  margin: 0 auto;
}

.scope-box {
  background: var(--surface);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

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

.scope-box.can {
  border-top: 4px solid #27ae60;
}

.scope-box.can h3 {
  color: #27ae60;
}

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

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

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

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

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

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

.scope-note {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}

/* Pricing Section */
.pricing-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: min(86vw, 980px);
  margin: 0 auto 40px;
}

.pricing-box {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-box:hover {
  border-color: rgba(197, 136, 123, 0.45);
  box-shadow: 0 4px 16px rgba(155, 96, 82, 0.1);
}

.pricing-box h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text);
}

.pricing-box .price {
  font-size: 32px;
  font-weight: bold;
  color: var(--accent-strong);
  margin-bottom: 24px;
  line-height: 1.2;
}

.pricing-box .price .tax {
  font-size: 16px;
  font-weight: normal;
  color: var(--muted);
}

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

.pricing-box ul li {
  font-size: 15px;
  padding: 8px 0;
  color: var(--muted);
}

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

/* Flow Section */
.flow {
  background: var(--bg-alt);
}

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

.flow-step {
  background: var(--surface);
  padding: 28px 28px 28px 28px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
}

.flow-step::before {
  content: attr(data-step);
  display: block;
  margin-bottom: 10px;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.flow-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.flow-step p {
  font-size: 15px;
  color: var(--muted);
}

/* FAQ Section */
.faq-container {
  max-width: min(82vw, 960px);
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(197, 136, 123, 0.4);
  box-shadow: 0 2px 10px rgba(155, 96, 82, 0.09);
}

.faq-item h3 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.faq-item p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* Final CTA Section */
.final-cta {
  background: linear-gradient(160deg, #22443f 0%, #17322e 100%);
  color: #fffdf9;
  text-align: center;
  padding: 60px 20px;
}

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

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

/* Contact Section */
.contact {
  background: var(--bg-alt);
  text-align: center;
}

.contact p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

.contact-info {
  font-size: 15px;
  color: var(--muted);
  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: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fffdf9;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(155, 96, 82, 0.35);
  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(155, 96, 82, 0.45);
}

.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: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  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: var(--muted);
  border-bottom: 1px solid var(--line);
  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: var(--muted-light);
  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(35, 49, 59, 0.06);
  color: var(--muted);
}

.chat-widget-log {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  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: var(--line-strong);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.chat-widget-log::-webkit-scrollbar-thumb:hover {
  background: rgba(53, 64, 76, 0.28);
  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: var(--text);
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  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: var(--radius-lg);
  background: transparent;
  border: 1px solid var(--line);
  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: var(--text);
}

.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: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-widget-msg.is-user .chat-widget-msg__content a {
  color: rgba(255, 253, 249, 0.88);
}

.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(35, 49, 59, 0.08);
}

.chat-widget-msg__content pre {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #1e2b32;
  color: #f7f3ec;
  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, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fffdf9;
  box-shadow: 0 2px 8px rgba(155, 96, 82, 0.2);
  font-weight: 500;
}

.chat-widget-msg.is-bot {
  align-self: flex-start;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.chat-widget-msg.is-error {
  align-self: flex-start;
  background: rgba(192, 57, 43, 0.06);
  border: 1px solid rgba(192, 57, 43, 0.2);
  color: #8b2020;
  box-shadow: 0 1px 3px rgba(192, 57, 43, 0.1);
}

.chat-widget-msg.is-pending {
  align-self: flex-start;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.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 var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.chat-widget-form__row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-widget-form__row:focus-within {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(197, 136, 123, 0.12);
}

.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: var(--muted);
  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;
  color: var(--text);
}

.chat-widget-form textarea:focus {
  outline: 2px solid rgba(197, 136, 123, 0.28);
  outline-offset: 2px;
}

.chat-widget-form textarea::placeholder {
  color: var(--muted-light);
}

.chat-widget-send {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fffdf9;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  min-height: 44px;
  box-shadow: 0 1px 4px rgba(155, 96, 82, 0.18);
  letter-spacing: -0.01em;
}

.chat-widget-send:hover:not(:disabled) {
  opacity: 0.88;
  box-shadow: 0 3px 12px rgba(155, 96, 82, 0.28);
}

.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 var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.chat-widget-starter-prompt:hover {
  border-color: rgba(197, 136, 123, 0.45);
  background: rgba(197, 136, 123, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(155, 96, 82, 0.12);
}

@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: var(--line);
  }

  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: var(--muted-light);
  }

  body:not(.chat-demo-page) .chat-widget-close:hover {
    background: rgba(35, 49, 59, 0.06);
    color: var(--muted);
  }

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

  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: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--line);
  }

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

  body:not(.chat-demo-page) .chat-widget-msg.is-user {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  }

  body:not(.chat-demo-page) .chat-widget-msg.is-bot {
    background: var(--bg);
    border-color: var(--line);
    box-shadow: none;
  }

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

  body:not(.chat-demo-page) .chat-widget-form__row {
    padding: 12px 16px;
    border-radius: 0;
    align-items: flex-end;
    background: var(--surface);
    border: none;
    border-top: 1px solid var(--line);
  }

  body:not(.chat-demo-page) .chat-widget-form__row:focus-within {
    border-top-color: rgba(197, 136, 123, 0.35);
    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: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
  }

  .chat-demo-page .chat-widget-header {
    padding: 12px 20px;
    background: transparent;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
  }

  .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: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--line);
  }

  .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: var(--surface);
  }

  .chat-demo-page .chat-widget-form__row {
    padding: 12px 20px;
    border: none;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }

  .chat-demo-page .chat-widget-form__row:focus-within {
    border-top-color: rgba(197, 136, 123, 0.35);
    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, 960px);
    gap: 0;
  }

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

  .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: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 12px 32px rgba(155, 96, 82, 0.22);
  }

  .chat-demo-page.chat-demo-floating .chat-widget-toggle--preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(155, 96, 82, 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: var(--radius-lg);
    overflow: hidden;
    border: none;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }

  .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 var(--line);
  }

  .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: var(--radius-lg);
    border-bottom-left-radius: 4px;
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow: none;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
  }

  .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: var(--surface);
    border: 1px solid rgba(197, 136, 123, 0.3);
    box-shadow: none;
    font-size: 13px;
    line-height: 1.4;
    color: var(--accent-strong);
    width: auto;
    text-align: left;
  }

  .chat-demo-page.chat-demo-floating .chat-widget-starter-prompt:hover {
    border-color: rgba(197, 136, 123, 0.5);
    background: rgba(197, 136, 123, 0.06);
    box-shadow: 0 2px 8px rgba(155, 96, 82, 0.1);
  }

  .chat-demo-page.chat-demo-floating .chat-widget-panel--preview .chat-widget-msg {
    max-width: 92%;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    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: var(--radius-lg);
    border-bottom-left-radius: 4px;
    background: var(--bg);
  }

  .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: var(--bg);
    border: 1px solid var(--line);
    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 var(--line);
  }

  .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 var(--line);
    background: var(--surface);
  }

  .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: var(--muted);
  }

  .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: var(--surface);
    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 {
    padding: 56px 20px 44px;
  }

  .hero-layout,
  .hero-generic-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    min-height: auto;
    padding: 0;
    align-items: center;
    text-align: center;
    justify-content: initial;
  }

  .hero h1 {
    font-size: clamp(22px, 6vw, 30px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
  }

  .hero h1 br {
    display: none;
  }

  .hero h1 span {
    display: inline;
    white-space: normal;
  }

  .hero .subtitle {
    font-size: 16px;
    max-width: min(92vw, 640px);
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
  }

  .hero .cta-button {
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    min-height: 62px;
  }

  .hero-media {
    display: block;
    justify-self: center;
    max-width: min(100%, 640px);
    align-self: auto;
  }

  .hero-media img {
    height: auto;
    min-height: 0;
  }

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

  section {
    padding: 56px 20px;
  }

  section h2 {
    font-size: 24px;
    margin-bottom: 36px;
    overflow-wrap: break-word;
  }

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

  .hero-actions {
    justify-content: center;
  }

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

  .flow-step {
    padding: 24px 20px;
  }

  .value-lead {
    font-size: 15px;
  }

  .value-visual {
    margin-top: 24px;
  }

  .feature-visual {
    margin-top: 24px;
  }

  .differentiator-lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .differentiator-title {
    font-size: 15px;
  }

  .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: var(--surface);
  }

  .chat-widget-form__row {
    flex-direction: row;
    align-items: flex-end;
    padding: 12px 16px;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--line);
  }

  .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;
  }
}

@media (min-width: 1024px) {
  section h2 {
    font-size: 30px;
  }

  .hero .eyebrow {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 40px;
  }

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

/* ─── Brand-specific preview page theming ────────────────────────────────── */

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;
}

body[data-brand="tonari"] .chat-demo-hero {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 50%, #f3e8ff 100%);
}

body[data-brand="tonari"] .eyebrow {
  background: #fae8ff;
  color: #6b21a8;
}

body[data-brand="tonari"] .back-link:hover {
  color: #7c3aed;
}
