/**
 * Chrome for the fictional "host site" on demo.html (SwissClean Sàrl).
 * Deliberately a DIFFERENT palette from styles.css (Dealz's own brand,
 * navy/blue) — the point of this page is to look like a real, different
 * client's website that happens to have the Dealz widget embedded in it.
 * The chat widget itself (.dealz-*, .quote-panel, .quote-side classes)
 * stays defined in styles.css and keeps its own Dealz look on purpose.
 */
:root {
  --sc-teal: #0eb8a8;
  --sc-teal-dark: #0a8f83;
  --sc-teal-light: #d6f5f1;
  --sc-coral: #ff6b5b;
  --sc-coral-dark: #e8503f;
  --sc-yellow: #ffc94a;
  --sc-yellow-dark: #e8a800;
  --sc-yellow-light: #fff3d6;
  --sc-ink: #1f2937;
  --sc-muted: #6b7280;
  --sc-bg: #fffdf8;
  --sc-line: #ece7dd;
}

body.swissclean { background: var(--sc-bg); color: var(--sc-ink); }

/* Sticky demo banner */
.sc-demo-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #111827;
  color: white;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sc-demo-banner .tag {
  background: var(--sc-coral);
  color: white;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 4px;
}
.sc-demo-banner a {
  color: #ffd77a;
  text-decoration: underline;
  font-weight: 700;
}

/* Nav */
.sc-nav {
  position: sticky;
  top: 37px;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  padding: 14px 24px;
  background: var(--sc-bg);
  border-bottom: 1px solid var(--sc-line);
}
.sc-nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--sc-ink); }
.sc-nav-logo .dot {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--sc-teal), var(--sc-coral));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.sc-nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; row-gap: 8px; }
.sc-nav-links button {
  border: none; background: none; font-family: inherit;
  font-size: 14px; font-weight: 600; color: var(--sc-muted);
  padding: 9px 14px; border-radius: 20px; cursor: pointer;
  white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.sc-nav-links button:hover { background: var(--sc-teal-light); color: var(--sc-teal-dark); }
.sc-nav-links button.active { background: var(--sc-ink); color: white; }
.sc-nav-links button.cta {
  background: linear-gradient(135deg, var(--sc-coral), var(--sc-yellow-dark));
  color: white;
}
.sc-nav-links button.cta.active { background: linear-gradient(135deg, var(--sc-coral-dark), var(--sc-yellow-dark)); }

/* Tabs */
.sc-tab { display: none; }
.sc-tab.active { display: block; }

.sc-section-inner { max-width: 1040px; margin: 0 auto; padding: 56px 32px; }
.sc-eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sc-teal-dark); background: var(--sc-teal-light);
  padding: 6px 14px; border-radius: 20px; margin-bottom: 16px;
}
.sc-title { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.sc-sub { color: var(--sc-muted); font-size: 16px; max-width: 560px; margin: 0 0 32px; }

/* Hero */
.sc-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 201, 74, 0.35), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(255, 107, 91, 0.2), transparent 45%),
    linear-gradient(180deg, var(--sc-teal-light), var(--sc-bg) 70%);
  padding: 56px 32px 40px;
  text-align: center;
}
.sc-hero-inner { max-width: 640px; margin: 0 auto; }
.sc-hero h1 {
  font-size: 38px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--sc-teal-dark), var(--sc-coral-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 0 16px;
}
.sc-hero p { color: var(--sc-muted); font-size: 16.5px; margin: 0 auto 26px; max-width: 460px; }
.sc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 30px; padding: 13px 26px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease;
}
.sc-btn:hover { transform: translateY(-2px); }
.sc-btn-primary { background: linear-gradient(135deg, var(--sc-coral), var(--sc-yellow-dark)); color: white; box-shadow: 0 10px 24px rgba(255, 107, 91, 0.3); }
.sc-btn-secondary { background: white; color: var(--sc-ink); border: 1.5px solid var(--sc-line); }
.sc-hero-strip { display: flex; justify-content: center; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.sc-hero-strip .stat { text-align: center; }
.sc-hero-strip .stat .num { font-size: 24px; font-weight: 800; color: var(--sc-teal-dark); }
.sc-hero-strip .stat .lbl { font-size: 12px; color: var(--sc-muted); font-weight: 600; }

/* Cards */
.sc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.sc-card { background: white; border: 1px solid var(--sc-line); border-radius: 16px; padding: 22px 20px; }
.sc-card .icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; background: var(--sc-teal-light); }
.sc-card h3 { font-size: 15.5px; margin: 0 0 6px; }
.sc-card p { font-size: 13.5px; color: var(--sc-muted); margin: 0; }
.sc-card .tag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--sc-teal-light); color: var(--sc-teal-dark); }

/* About */
.sc-about-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.sc-about-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--sc-muted); }
.sc-check { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--sc-teal); color: white; font-size: 11px; display: flex; align-items: center; justify-content: center; }

/* Contact */
.sc-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.sc-contact-card { background: white; border: 1px solid var(--sc-line); border-radius: 14px; padding: 18px; }
.sc-contact-card .lbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sc-muted); margin-bottom: 5px; }
.sc-contact-card .val { font-size: 15px; font-weight: 700; }

/* Footer */
.sc-footer { text-align: center; padding: 26px; color: var(--sc-muted); font-size: 12.5px; border-top: 1px solid var(--sc-line); }
.sc-footer a { color: var(--sc-teal-dark); font-weight: 700; text-decoration: none; }

/* Quote tab intro line */
.sc-devis-note { text-align: center; max-width: 600px; margin: 0 auto 30px; color: var(--sc-muted); font-size: 15px; }

/* Devis mode tabs — the four "how this looks on your site" options */
.devis-mode-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 720px; margin: 0 auto 26px;
}
.dmt-btn {
  background: white; border: 1.5px solid var(--sc-line); border-radius: 20px;
  padding: 9px 18px; font-family: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--sc-muted); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.dmt-btn:hover { border-color: var(--sc-teal); color: var(--sc-teal-dark); }
.dmt-btn.active { background: var(--sc-teal-dark); border-color: var(--sc-teal-dark); color: white; }

.devis-mode-panel { display: none; }
.devis-mode-panel.active { display: block; }
.devis-mode-try { text-align: center; padding: 34px 0 44px; }

/* Real floating bubble for the "Widget de chat" tab — same positioning
   language as docs/embed.js's actual bubble, so this demo is an honest
   preview, not a lookalike. .quote-panel is moved into the slot below by
   JS rather than duplicated. */
.demo-widget-launcher {
  display: none;
  position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sc-teal), var(--sc-teal-dark)); color: #fff; border: none; cursor: pointer;
  font-size: 26px; box-shadow: 0 6px 18px rgba(14, 184, 168, 0.4); z-index: 999999;
}
.demo-widget-launcher.show { display: block; }
.demo-widget-panel-slot {
  display: none;
  position: fixed; bottom: 96px; right: 24px; z-index: 999999;
  max-width: calc(100vw - 32px); max-height: calc(100vh - 140px);
}
.demo-widget-panel-slot.open { display: block; }
.quote-panel-slot .quote-panel { width: 100%; }
.demo-widget-panel-slot .quote-panel { width: 360px; max-width: calc(100vw - 32px); }

/* Pop-up tab's modal — backdrop + centered card, stays on this page. */
.demo-popup-overlay {
  display: none; position: fixed; inset: 0; background: rgba(11, 18, 32, 0.55);
  align-items: center; justify-content: center; z-index: 1000000; padding: 20px;
}
.demo-popup-overlay.open { display: flex; }
.demo-popup-card {
  position: relative; width: 100%; max-width: 480px; height: 85vh; max-height: 700px;
  background: white; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.demo-popup-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(11, 18, 32, 0.5); color: white; border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 16px; cursor: pointer; line-height: 1;
}
#demo-popup-iframe { width: 100%; height: 100%; border: 0; display: block; }
