/* ============================================================
   Botchoir — design system
   Warm paper, deep ink, one flame accent. Inter throughout.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c1917;
  --ink-strong: #12100e;
  --body: #45403c;
  --gray: #8a8378;
  --hairline: #e8e2d6;
  --hairline-strong: #d8d1bf;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --bubble: #f4f1ea;
  --accent: #e8490f;
  --accent-strong: #c93d0b;
  --accent-soft: #fdeee5;
  --accent-ring: rgba(232, 73, 15, 0.28);
  --guest: #a39e93;
  --error: #b3261e;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05), 0 1px 6px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 2px 6px rgba(28, 25, 23, 0.06), 0 12px 32px rgba(28, 25, 23, 0.09);
  --shadow-lg: 0 4px 12px rgba(28, 25, 23, 0.08), 0 24px 56px rgba(28, 25, 23, 0.16);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) var(--bg);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--hairline-strong);
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--gray); }

::selection { background: var(--accent-soft); }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }

button {
  font-family: inherit;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

button:active { transform: scale(0.98); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

input, textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-ring);
  outline: none;
}

.mark { display: block; flex: none; }

/* ---------- site bar + landing ---------- */

.sitebar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sitebar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-lockup .mark { width: 30px; height: 30px; }

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.sitenav { display: flex; gap: 22px; align-items: center; font-size: 14.5px; }
.sitenav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.sitenav a:hover { color: var(--accent-strong); }
.sitenav a.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.sitenav a.nav-cta:hover { background: var(--ink-strong); color: #fff; }

.landing {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}

/* hero */

.hero { padding: 48px 0 16px; }

.hero-grid { display: block; }

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(40px, 7.2vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  max-width: 640px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 28px;
  max-width: 560px;
}

.create-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  max-width: 600px;
}

.create-card label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.create-row { display: flex; gap: 10px; }

.create-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 13px 15px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  background: var(--surface);
  color: var(--ink);
}

.create-row input::placeholder { color: var(--gray); }

.create-row button {
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: var(--r-md);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(232, 73, 15, 0.28);
}

.create-row button:hover { background: var(--accent-strong); }
.create-row button:disabled { opacity: 0.45; cursor: default; box-shadow: none; }

.create-note { font-size: 13px; color: var(--gray); margin-top: 12px; }
.create-error { font-size: 13.5px; color: var(--error); margin-top: 6px; font-weight: 500; }
.create-error:empty { display: none; }

.hero-alt { font-size: 15px; margin-top: 22px; color: var(--body); }
.hero-alt a { font-weight: 600; }

/* hero conversation preview */

.preview {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 600px;
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.preview-live {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.preview-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
}

.pv-msg { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.pv-msg-own { align-items: flex-end; }

.pv-bubble {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px 16px 16px 16px;
  padding: 10px 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 88%;
  box-shadow: var(--shadow-sm);
}

.pv-bubble-owner {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
}

/* sections */

.landing section h2 {
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 56px 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing section h2::before {
  content: '';
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  flex: none;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.step-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: var(--surface);
  font-weight: 800;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card h3 { margin: 0 0 7px; font-size: 17.5px; font-weight: 700; letter-spacing: -0.015em; }
.step-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--body); }

.byo {
  margin-top: 8px;
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  max-width: 720px;
}

.byo h2 { margin-left: -25px; }
.byo h2::before { display: none; }

.byo p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--body);
  margin: 14px 0 0;
}

.byo p strong { color: var(--ink); }

.price-card {
  border: 1.5px solid var(--ink);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: 28px;
  max-width: 620px;
  box-shadow: var(--shadow-md);
  margin-top: 18px;
}

.price-big {
  font-size: clamp(30px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.price-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  vertical-align: middle;
}

.price-card p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--body); }

.sitefoot {
  border-top: 1px solid var(--hairline);
  padding: 34px 20px 120px;
  text-align: center;
  font-size: 13.5px;
  color: var(--gray);
}

.sitefoot .mark { width: 26px; height: 26px; margin: 0 auto 10px; opacity: 0.9; }

.sitefoot-tag { margin: 0; }

.sitefoot-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 16px;
}

.sitefoot-nav a {
  color: var(--body);
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
}

.sitefoot-nav a:hover { color: var(--accent-strong); }

.sitefoot-fine {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--gray);
}

/* ---------- room ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 18px 13px;
}

.topbar-brandrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.topbar-brandrow .mark { width: 21px; height: 21px; }

.brand-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

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

.status-row {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 11px 4px 9px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
  flex: none;
}

.status {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.room-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.room-sub { font-size: 13px; color: var(--gray); margin-top: 3px; line-height: 1.45; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* invite panel */

.invite {
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.invite[hidden] { display: none; }

.invite-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 18px 24px;
}

.invite-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.invite-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.025em; margin: 0; }

.invite-close {
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.invite-close:hover { border-color: var(--ink); }

.invite-inner h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 24px 0 8px;
}

.invite-note, .invite-hint { font-size: 13.5px; color: var(--body); line-height: 1.55; margin: 8px 0; }

.invite-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.invite-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  outline: none;
  color: var(--ink);
}

.invite-row input[readonly] { background: var(--bubble); color: var(--body); }

.invite-row button {
  border: none;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 11px 17px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.invite-row button:hover { background: var(--ink-strong); }

.invite-code {
  background: var(--ink-strong);
  color: #ece7db;
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
  box-shadow: var(--shadow-sm);
}

.invite-msg { font-size: 13.5px; font-weight: 500; color: var(--accent-strong); margin-top: 8px; min-height: 16px; }

.invite-keys { font-size: 13.5px; line-height: 1.6; color: var(--body); padding-left: 18px; margin: 8px 0 2px; }
.invite-keys li { margin-bottom: 5px; }
.invite-keys strong { color: var(--ink); }

/* unlock bar */

.unlock {
  border-bottom: 1px solid var(--hairline);
  background: var(--accent-soft);
}

.unlock[hidden] { display: none; }

.unlock-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  font-size: 13.5px;
  color: var(--body);
}

.unlock-inner input {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  padding: 10px 13px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: var(--surface);
}

.unlock-inner button {
  border: none;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.unlock-inner button:hover { background: var(--ink-strong); }

/* messages */

.messages {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 18px 210px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.msg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  animation: rise 0.25s ease both;
}

.msg-head { display: flex; align-items: baseline; gap: 8px; }

.chip {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3.5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--guest);
}

.chip-owner { background: var(--ink); }
.chip-bot { background: var(--accent); }
.chip-guest { background: var(--guest); }

.msg-time { font-size: 11.5px; color: var(--gray); }

.msg-text {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px 16px 16px 16px;
  padding: 11px 15px;
  font-size: 15.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 92%;
  box-shadow: var(--shadow-sm);
}

.msg:has(.chip-owner) { align-items: flex-end; }
.msg:has(.chip-owner) .msg-text {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
}

.msg:has(.chip-guest) .msg-text { background: var(--bubble); box-shadow: none; }

.empty {
  color: var(--gray);
  font-size: 14.5px;
  text-align: center;
  padding: 44px 20px;
  line-height: 1.5;
}

.empty::before {
  content: '';
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Crect x='13' y='3' width='20' height='16' rx='5' fill='%23ddd5c5'/%3E%3Cpath d='M27 19v5.5L21.5 19z' fill='%23ddd5c5'/%3E%3Crect x='3' y='13' width='21' height='16' rx='5' fill='%23e8e2d6'/%3E%3Cpath d='M8 29v5.5L13.5 29z' fill='%23e8e2d6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.msg-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.msg-attachments a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
}

.msg-attachments a:hover { border-color: var(--accent); }

.msg:has(.chip-owner) .msg-attachments a {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* composer */

.composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: linear-gradient(to top, var(--bg) 78%, rgba(251, 250, 247, 0));
  padding: 14px 14px calc(12px + env(safe-area-inset-bottom));
}

.composer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 8px;
}

.composer textarea, .composer input[type="text"] {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.4;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.composer textarea:focus, .composer input[type="text"]:focus {
  border-color: transparent !important;
  box-shadow: none;
}

.composer-inner:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-ring);
}

.composer textarea { flex: 1; resize: none; max-height: 120px; min-width: 0; }
.composer textarea::placeholder, .composer input[type="text"]::placeholder { color: var(--gray); }

#guest-name {
  width: 104px;
  flex: none;
  background: var(--bubble);
  border-radius: 12px;
}

.composer button {
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  padding: 11px 19px;
  cursor: pointer;
  white-space: nowrap;
}

.composer button:hover { background: var(--accent-strong); }
.composer button:disabled { opacity: 0.45; cursor: default; }

#attach-btn {
  background: var(--surface);
  color: var(--body);
  border: 1px solid var(--hairline-strong);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 14px;
}

#attach-btn:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }

.composer-error {
  max-width: 760px;
  margin: 7px auto 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--error);
  padding: 0 6px;
}

.composer-error:empty { display: none; }

.composer textarea:disabled { color: var(--gray); }

.pending {
  max-width: 760px;
  margin: 0 auto 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 8px 13px;
  box-shadow: var(--shadow-sm);
}

.pending[hidden] { display: none; }

.pending-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }

.pending-remove {
  border: none;
  background: none;
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

/* ---------- sales assistant widget ---------- */

.sales { position: fixed; right: 16px; bottom: 16px; z-index: 40; }
body.room-page .sales { bottom: 104px; }

.sales-fab {
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 999px;
  padding: 10px 18px 10px 11px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 9px;
}

.sales-fab:hover { background: var(--ink-strong); transform: translateY(-1px); }
.sales-fab .sales-avatar { width: 26px; height: 26px; }

.sales-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: min(356px, calc(100vw - 28px));
  max-height: calc(100dvh - 108px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pop 0.18s ease both;
  transform-origin: bottom right;
}

.sales-panel[hidden] { display: none; }

body.room-page .sales-panel { max-height: calc(100dvh - 196px); }

.sales-actions[hidden] { display: none; }

.sales-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.sales-avatar { width: 36px; height: 36px; flex: none; display: block; }

.sales-headtext { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sales-name { font-weight: 800; font-size: 15.5px; letter-spacing: -0.02em; }
.sales-sub { font-size: 12px; color: var(--gray); }

.sales-close {
  margin-left: auto;
  border: none;
  background: var(--bubble);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  color: var(--body);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.sales-close:hover { background: var(--hairline); color: var(--ink); }

.sales-msgs {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 330px;
  min-height: 0;
  overflow-y: auto;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}

.sales-msgs::-webkit-scrollbar { width: 5px; }
.sales-msgs::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 99px; }

.sales-msg {
  font-size: 14px;
  line-height: 1.55;
  border-radius: 14px;
  padding: 9px 13px;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 92%;
  animation: rise 0.2s ease both;
}

.sales-msg-bot {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px 14px 14px 14px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}

.sales-msg-user {
  background: var(--ink);
  color: #fff;
  border-radius: 14px 4px 14px 14px;
  align-self: flex-end;
}

.sales-actions { padding: 10px 16px 2px; background: var(--bg); }

.sales-actions button {
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sales-actions button:hover { background: var(--accent-soft); }

.sales-lead {
  display: flex;
  gap: 8px;
  padding: 10px 16px 4px;
  background: var(--bg);
}

.sales-lead[hidden] { display: none; }

.sales-lead input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: var(--surface);
}

.sales-lead button, .sales-form button {
  border: none;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 10px 15px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.sales-lead button:hover, .sales-form button:hover { background: var(--ink-strong); }
.sales-form button:disabled { opacity: 0.45; cursor: default; }

.sales-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  align-items: flex-end;
}

.sales-form textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  max-height: 90px;
  min-width: 0;
}

.sales-error { font-size: 12.5px; font-weight: 500; color: var(--error); padding: 6px 16px 10px; background: var(--bg); }
.sales-error:empty { padding: 0; }

/* ---------- doc pages (privacy, terms, support, contact) ---------- */

.doc { max-width: 760px; }

.doc-head { padding: 48px 0 8px; }

.doc-head h1 {
  font-size: clamp(34px, 5.6vw, 48px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  text-wrap: balance;
}

.doc-updated { font-size: 13.5px; color: var(--gray); margin: 0; }

.doc-lede { font-size: 18px; line-height: 1.65; color: var(--body); margin: 18px 0 0; }
.doc-lede strong { color: var(--ink); }

.doc section p { font-size: 16.5px; line-height: 1.7; color: var(--body); margin: 0 0 14px; }
.doc section p strong { color: var(--ink); }

.doc section ul { margin: 0 0 14px; padding-left: 22px; }
.doc section li { font-size: 16.5px; line-height: 1.7; color: var(--body); margin-bottom: 7px; }
.doc section li strong { color: var(--ink); }

.doc section h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin: 28px 0 6px; }
.doc section h3:first-of-type { margin-top: 18px; }

/* contact form */

.contact-card { max-width: 640px; margin-top: 22px; }

.field { margin-bottom: 16px; }

.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 13px 15px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  background: var(--surface);
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray); }

.contact-submit {
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: var(--r-md);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(232, 73, 15, 0.28);
}

.contact-submit:hover { background: var(--accent-strong); }

/* ---------- responsive ---------- */

@media (min-width: 960px) {
  .hero { padding-top: 64px; }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 52px;
    align-items: start;
  }
  .preview { margin-top: 10px; }
}

@media (max-width: 560px) {
  .sitebar-inner { padding: 12px 16px; }
  .sitenav { gap: 14px; font-size: 13.5px; }
  .sitenav a.nav-cta { padding: 8px 13px; }
  .landing { padding: 4px 16px 40px; }
  .hero { padding: 34px 0 10px; }
  .create-row { flex-direction: column; }
  .create-row button { width: 100%; padding: 14px; }
  .create-card { padding: 18px; }
  .preview-body { padding: 14px; }
  .byo { padding-left: 16px; }
  .byo h2 { margin-left: -19px; }
  .price-card { padding: 22px; }
  .messages { padding: 18px 14px 200px; }
  .msg-text { max-width: 96%; font-size: 15px; }
  .composer { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
  #guest-name { width: 84px; }
  .composer button { padding: 11px 15px; }
  #attach-btn { padding: 11px 11px; }
  .invite-inner { padding: 18px 14px 20px; }
  .status-row { padding: 3px 9px 3px 8px; }
  .room-name { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
