/* ------------------------------------------------------------------
   Chat Thing demo wireframes — shared styles
   A deliberately "placeholder" website skin so the focus stays on the
   live Chat Thing widget. Each customer page sets its own --accent.
------------------------------------------------------------------- */

:root {
  --accent: #00a9a7;          /* per-page brand accent, override inline */
  --ink: #1f2328;
  --muted: #6b7280;
  --line: #d3d7de;
  --skeleton: #e7e9ee;
  --skeleton-2: #eef0f4;
  --bg: #ffffff;
  --radius: 12px;
  --maxw: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --- Demo notice bar ------------------------------------------------ */
.demo-bar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 9px 16px;
}
.demo-bar strong { color: #fff; }
.demo-bar .pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 1px 9px;
  font-weight: 600;
  font-size: 12px;
  margin-right: 6px;
}
.demo-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* --- Header --------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.logo span { color: var(--ink); }
.nav { display: flex; gap: 22px; }
.nav .nav-link {
  height: 11px;
  width: 64px;
  background: var(--skeleton);
  border-radius: 999px;
  display: inline-block;
}
.nav .nav-link.sm { width: 44px; }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* --- Generic placeholder primitives -------------------------------- */
.skel { background: var(--skeleton); border-radius: 6px; display: block; }
.skel.line { height: 12px; margin: 8px 0; }
.skel.line.w90 { width: 90%; }
.skel.line.w70 { width: 70%; }
.skel.line.w50 { width: 50%; }
.skel.line.w40 { width: 40%; }

/* Image placeholder with the classic wireframe "cross" */
.img-ph {
  position: relative;
  background: var(--skeleton-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.img-ph::before,
.img-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right,
    transparent calc(50% - 0.5px), var(--line),
    transparent calc(50% + 0.5px));
}
.img-ph::after { transform: scaleX(-1); }
.img-ph .ratio-1 { padding-top: 100%; }
.img-ph .ratio-4-3 { padding-top: 75%; }
.img-ph .ratio-16-9 { padding-top: 56.25%; }

/* --- Buttons (placeholder) ----------------------------------------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: default;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* --- Hero ----------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 64px 0; }
.hero h1 { font-size: 44px; line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { color: var(--muted); font-size: 17px; margin: 0 0 26px; max-width: 46ch; }
.hero .cta-row { display: flex; gap: 12px; }
.hero .img-ph { width: 100%; }

/* --- Section scaffolding ------------------------------------------- */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.01em; }
.section .sub { color: var(--muted); margin: 0 0 28px; }

/* --- Product / card grid ------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.card .img-ph { border: none; border-bottom: 1px dashed var(--line); border-radius: 0; }
.card .card-body { padding: 14px 16px 18px; }
.card .card-title { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.card .price { color: var(--accent); font-weight: 700; font-size: 14px; }

/* --- Strip / feature row ------------------------------------------- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature .dot { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); opacity: 0.15; margin-bottom: 12px; }

/* --- Footer --------------------------------------------------------- */
.site-footer { background: #fafbfc; border-top: 1px solid var(--line); margin-top: 64px; padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-col .skel.line { max-width: 120px; }
.footer-note { color: var(--muted); font-size: 13px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* --- Responsive ----------------------------------------------------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .hero h1 { font-size: 34px; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
