
*{
  box-sizing:border-box;
}

body.premium-demo{
  margin:0;
  min-height:100vh;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:#f4f6f8;
  color:#111827;
}

.demo-page{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(520px,.95fr);
}

/* LEFT / HERO */

.demo-hero{
  position:relative;
  min-height:100vh;
  padding:64px;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:
    linear-gradient(
      to top,
      rgba(3,7,18,.78),
      rgba(17,24,39,.18)
    ),
    url("/static/roofing-hero.jpg?v=3") center center / cover no-repeat;
}

.demo-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255,255,255,.14),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      transparent 0 48%,
      rgba(255,255,255,.04) 48% 52%,
      transparent 52% 100%
    );
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      to top,
      rgba(3,7,18,.6),
      rgba(17,24,39,.05)
    );
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:650px;
  color:white;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.1);
  backdrop-filter:blur(12px);
  border-radius:999px;
  padding:9px 14px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  margin-bottom:26px;
}

.hero-content h1{
  margin:0;
  font-size:clamp(48px,6vw,82px);
  line-height:.96;
  letter-spacing:-.055em;
  font-weight:750;
}

.hero-content p{
  max-width:570px;
  margin:26px 0 0;
  color:rgba(255,255,255,.78);
  font-size:18px;
  line-height:1.65;
}

.hero-points{
  margin-top:34px;
  display:flex;
  flex-wrap:wrap;
  gap:18px 28px;
  font-size:14px;
  font-weight:600;
  color:rgba(255,255,255,.9);
}

/* RIGHT */

.demo-chat-side{
  min-height:100vh;
  padding:38px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:
    radial-gradient(circle at 80% 8%,#ffffff 0,#f8fafc 32%,transparent 55%),
    #f3f5f7;
}

.premium-chat{
  width:min(100%,720px);
  margin:0 auto;
  background:#fff;
  border:1px solid #e6e9ee;
  border-radius:28px;
  overflow:hidden;
  box-shadow:
    0 30px 80px rgba(15,23,42,.10),
    0 4px 18px rgba(15,23,42,.05);
}

/* TOP BAR */

.premium-chat .chat-topbar{
  min-height:82px;
  padding:18px 22px;
  display:flex;
  align-items:center;
  gap:14px;
  border-bottom:1px solid #edf0f3;
  background:rgba(255,255,255,.96);
}

.premium-chat .brand-mark{
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 46px;
  background:#111827;
  color:#fff;
  font-size:14px;
  font-weight:800;
  letter-spacing:.04em;
  box-shadow:0 5px 14px rgba(17,24,39,.15);
}

.brand-info{
  min-width:0;
}

.premium-chat .brand{
  font-size:15px;
  font-weight:750;
  color:#101828;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.premium-chat .availability{
  margin-top:4px;
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  color:#667085;
}

.status-dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.12);
}

.online-label{
  margin-left:auto;
  font-size:11px;
  font-weight:700;
  color:#15803d;
  background:#f0fdf4;
  border:1px solid #dcfce7;
  padding:6px 10px;
  border-radius:999px;
}

/* INTRO */

.premium-chat .chat-intro{
  padding:30px 28px 16px;
}

.premium-chat .eyebrow{
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  color:#667085;
  margin-bottom:8px;
}

.premium-chat .chat-intro h2{
  margin:0;
  font-size:32px;
  line-height:1.1;
  letter-spacing:-.035em;
  color:#101828;
}

.premium-chat .muted{
  margin:12px 0 0;
  font-size:14px;
  line-height:1.6;
  color:#667085;
}

/* CHAT */

.premium-chat .chat{
  height:310px;
  padding:18px 28px 24px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
  scroll-behavior:smooth;
}

.premium-chat .bubble{
  max-width:82%;
  padding:13px 16px;
  border-radius:18px;
  font-size:14px;
  line-height:1.55;
  animation:messageIn .2s ease-out;
}

.premium-chat .bubble.bot{
  align-self:flex-start;
  background:#f2f4f7;
  color:#344054;
  border-bottom-left-radius:6px;
}

.premium-chat .bubble.user{
  align-self:flex-end;
  background:#111827;
  color:#fff;
  border-bottom-right-radius:6px;
}

@keyframes messageIn{
  from{
    opacity:0;
    transform:translateY(5px);
  }
  to{
    opacity:1;
    transform:none;
  }
}

/* COMPOSER */

.premium-chat .composer{
  margin:0 22px;
  padding:7px;
  display:flex;
  gap:8px;
  background:#f8fafc;
  border:1px solid #e4e7ec;
  border-radius:16px;
  transition:.2s ease;
}

.premium-chat .composer:focus-within{
  background:#fff;
  border-color:#98a2b3;
  box-shadow:0 0 0 4px rgba(17,24,39,.05);
}

.premium-chat .composer input{
  flex:1;
  min-width:0;
  height:48px;
  padding:0 12px;
  border:0;
  outline:0;
  background:transparent;
  font:inherit;
  font-size:14px;
  color:#101828;
}

.premium-chat .composer input::placeholder{
  color:#98a2b3;
}

.premium-chat .composer button{
  height:48px;
  border:0;
  border-radius:11px;
  padding:0 18px;
  background:#111827;
  color:white;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
  transition:
    transform .15s ease,
    opacity .15s ease;
}

.premium-chat .composer button:hover{
  transform:translateY(-1px);
}

.premium-chat .composer button:active{
  transform:translateY(0);
}

.premium-chat .composer button span{
  margin-left:5px;
}

/* FOOT */

.premium-chat .done{
  margin:16px 22px 0;
  color:#067647;
  font-size:13px;
  font-weight:650;
}

.privacy-note{
  padding:13px 24px 0;
  text-align:center;
  color:#98a2b3;
  font-size:10.5px;
}

.premium-chat .chat-footer{
  padding:13px 24px 20px;
  text-align:center;
  color:#98a2b3;
  font-size:10.5px;
}

/* BILLING */

.demo-chat-side .billing-warning{
  width:min(100%,720px);
  margin:0 auto 14px;
  border:1px solid #fed7aa;
  background:#fff7ed;
  border-radius:16px;
  padding:14px 16px;
}

/* MOBILE */

@media(max-width:980px){

  .demo-page{
    display:block;
  }

  .demo-hero{
    min-height:auto;
    padding:42px 24px 48px;
  }

  .hero-content h1{
    font-size:48px;
  }

  .demo-chat-side{
    min-height:auto;
    padding:24px 16px 44px;
  }

  .premium-chat{
    border-radius:22px;
  }
}

@media(max-width:560px){

  .demo-hero{
    padding:32px 20px 38px;
  }

  .hero-content h1{
    font-size:41px;
  }

  .hero-content p{
    font-size:15px;
  }

  .hero-points{
    gap:10px 18px;
  }

  .demo-chat-side{
    padding:16px 10px 30px;
  }

  .premium-chat .chat-intro{
    padding:24px 20px 12px;
  }

  .premium-chat .chat{
    height:300px;
    padding:16px 20px 20px;
  }

  .premium-chat .composer{
    margin:0 14px;
  }

  .premium-chat .chat-intro h2{
    font-size:27px;
  }

  .online-label{
    display:none;
  }
}

/* STAGE 9 TENANT BRANDING TOKENS */

.customer.premium-demo {
  font-family: var(--lp-font);
  color: var(--lp-text);
}

.premium-chat {
  background: var(--lp-surface);
  border-radius: calc(var(--lp-radius) + 10px);
}

.premium-chat .brand-mark {
  background: var(--lp-primary);
  color: #fff;
  border-radius: var(--lp-radius);
}

.premium-chat .brand-mark.brand-logo {
  background: transparent;
  overflow: hidden;
  padding: 0;
}

.premium-chat .brand-mark.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.premium-chat .brand {
  color: var(--lp-text);
}

.premium-chat .eyebrow,
.premium-chat .availability,
.premium-chat .muted,
.premium-chat .chat-footer {
  color: var(--lp-muted);
}

.premium-chat .bubble {
  border-radius: var(--lp-radius);
}

.premium-chat .bubble.user {
  background: var(--lp-primary);
  color: #fff;
}

.premium-chat .bubble.bot {
  color: var(--lp-text);
}

.premium-chat .composer {
  border-radius: var(--lp-radius);
}

.premium-chat .composer button {
  background: var(--lp-primary);
  color: #fff;
  border-radius: max(8px, calc(var(--lp-radius) - 7px));
}

.premium-chat .composer button:hover {
  filter: brightness(1.08);
}

.hero-badge {
  border-radius: 999px;
}

.demo-hero h1 {
  max-width: 760px;
}


/* STAGE 9 MERCHANT PROFILE */

.profile-merchant .demo-page {
  grid-template-columns:
    minmax(0, 1.12fr)
    minmax(500px, .88fr);
  background: #f4f0e9;
}

.profile-merchant .demo-hero {
  min-height: 100vh;
  align-items: center;
  padding: 72px;
  background:
    linear-gradient(
      135deg,
      #f8f5ef 0%,
      #eee7db 100%
    ) !important;
}

.profile-merchant .demo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .78;
  background:
    linear-gradient(
      90deg,
      transparent 0 72%,
      color-mix(in srgb, var(--lp-accent) 18%, transparent) 72% 73%,
      transparent 73%
    ),
    linear-gradient(
      transparent 0 68%,
      color-mix(in srgb, var(--lp-primary) 10%, transparent) 68% 69%,
      transparent 69%
    );
}

.profile-merchant .demo-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -90px;
  top: 70px;
  border-radius: 42px;
  transform: rotate(12deg);
  background:
    linear-gradient(
      135deg,
      var(--lp-accent),
      color-mix(in srgb, var(--lp-accent) 58%, #ffffff)
    );
  box-shadow:
    -55px 80px 0
      color-mix(in srgb, var(--lp-primary) 12%, transparent);
  opacity: .92;
}

.profile-merchant .hero-overlay {
  display: none;
}

.profile-merchant .hero-content {
  max-width: 700px;
  color: var(--lp-text);
}

.profile-merchant .hero-badge {
  border:
    1px solid
    color-mix(in srgb, var(--lp-accent) 55%, #ffffff);
  background:
    color-mix(in srgb, var(--lp-accent) 14%, #ffffff);
  color: var(--lp-primary);
  backdrop-filter: none;
  letter-spacing: .11em;
}

.profile-merchant .hero-content h1 {
  max-width: 700px;
  font-size: clamp(50px, 5.4vw, 76px);
  line-height: .98;
  color: var(--lp-primary);
}

.profile-merchant .hero-content p {
  max-width: 600px;
  color: var(--lp-muted);
  font-size: 18px;
}

.profile-merchant .hero-points {
  gap: 12px;
}

.profile-merchant .hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border:
    1px solid
    color-mix(in srgb, var(--lp-primary) 12%, #ffffff);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: var(--lp-primary);
  box-shadow: 0 8px 25px rgba(17,24,39,.05);
}

.profile-merchant .demo-chat-side {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f5f6f7 100%
    );
}

.profile-merchant .premium-chat {
  border:
    1px solid
    color-mix(in srgb, var(--lp-primary) 10%, #ffffff);
  box-shadow:
    0 28px 70px rgba(17,24,39,.13);
}

.profile-merchant .premium-chat .brand-mark {
  background: var(--lp-accent);
  color: #ffffff;
}

.profile-merchant .premium-chat .composer button {
  background: var(--lp-accent);
}

@media(max-width:980px) {
  .profile-merchant .demo-hero {
    padding: 48px 26px 54px;
  }

  .profile-merchant .demo-hero::after {
    width: 220px;
    height: 220px;
    right: -95px;
    top: 25px;
    opacity: .45;
  }
}

@media(max-width:560px) {
  .profile-merchant .hero-content h1 {
    font-size: 42px;
  }

  .profile-merchant .hero-points {
    display: grid;
  }

  .profile-merchant .hero-points span {
    width: fit-content;
  }
}

/* STAGE 1 EMBED ? SEND OUTLINE */
html.lp-embed.lp-stage1 .premium-chat .composer button {
  background: #ffffff !important;
  color: #111827 !important;
  border: 2px solid #e11d2e !important;
  box-shadow: none !important;
}

html.lp-embed.lp-stage1 .premium-chat .composer button:hover,
html.lp-embed.lp-stage1 .premium-chat .composer button:active,
html.lp-embed.lp-stage1 .premium-chat .composer button:focus {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #e11d2e !important;
  box-shadow: none !important;
}

html.lp-embed.lp-stage1 .premium-chat .composer button span {
  color: inherit !important;
}

