/* ChatBase Store. Brand: sunshine yellow + deep navy, with the peeking mascot. Light and dark follow the visitor's device. */
@font-face { font-family: 'Salsa'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/salsa-latin.woff2') format('woff2'); }

:root {
  --bg: #fbf8f1;
  --bg-alt: #f4eedf;
  --surface: #ffffff;
  --ink: #1d2b53;          /* headings: the logo's navy */
  --text: #323a5a;
  --muted: #5e6684;
  --line: #e8e0cc;
  --yellow: #ffc93c;
  --yellow-hover: #ffb800;
  --on-yellow: #1d2b53;
  --coral: #e4572e;
  --ok: #1d7a46;
  --danger: #b3261e;
  --glow: rgba(255, 201, 60, .35);
  --shadow: 0 1px 2px rgba(29, 43, 83, .06), 0 14px 40px rgba(29, 43, 83, .10);
  --shadow-lg: 0 2px 4px rgba(29, 43, 83, .06), 0 30px 70px rgba(29, 43, 83, .18);
  --radius: 18px;
  --head: 'Salsa', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1426;
    --bg-alt: #121a31;
    --surface: #172039;
    --ink: #ffffff;
    --text: #cfd4e6;
    --muted: #96a0c0;
    --line: rgba(255, 255, 255, .10);
    --ok: #6fd19a;
    --danger: #ff8a80;
    --glow: rgba(255, 201, 60, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 40px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 70px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--head); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 40px); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.ico { flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 2px solid transparent; border-radius: 999px; background: var(--yellow); color: var(--on-yellow); font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; box-shadow: 0 6px 18px rgba(255, 184, 0, .35); }
.btn:hover { background: var(--yellow-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.stuck { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { padding: 10px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:not(.btn):hover { background: var(--bg-alt); color: var(--ink); }
.nav-cta { margin-left: 8px; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
@media (max-width: 860px) {
  .burger { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 18px; }
  .nav-cta { margin: 8px 0 0; min-height: 52px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); background:
  radial-gradient(900px 520px at 85% -10%, var(--glow), transparent 70%),
  radial-gradient(700px 400px at -10% 30%, color-mix(in srgb, var(--coral) 10%, transparent), transparent 70%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 7px 16px 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }
.dot-live { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.hero h1 { font-size: clamp(38px, 4.7vw, 60px); }
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after { content: ''; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: .06em; height: .36em; border-radius: 6px; background: var(--yellow); opacity: .9; transform: rotate(-1deg); }
@media (prefers-color-scheme: dark) { .mark::after { opacity: .85; } .mark { color: #fff; } }
.lead { max-width: 560px; margin-top: 24px; color: var(--text); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.checks { display: grid; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 16px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks .ico { color: var(--ok); }

/* the product picture */
.hero-art { position: relative; min-width: 0; }
.mock { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transition: transform .5s ease; }
.hero-art:hover .mock { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.mock-bar .d { width: 11px; height: 11px; border-radius: 50%; }
.d1 { background: #ff5f57; } .d2 { background: #febc2e; } .d3 { background: #28c840; }
.mock-url { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 4px 14px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; }
.mock-body { display: grid; grid-template-columns: 112px minmax(0, 1fr) 128px; min-height: 390px; font-size: 13px; line-height: 1.4; }
.m-h { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.m-rooms, .m-people { padding: 14px 10px; background: var(--bg-alt); }
.m-rooms { border-right: 1px solid var(--line); } .m-people { border-left: 1px solid var(--line); }
.m-room { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 7px 8px; border-radius: 10px; color: var(--text); font-weight: 600; }
.m-room.on { background: color-mix(in srgb, var(--yellow) 38%, transparent); color: var(--ink); }
.m-room .ico { margin-left: auto; opacity: .6; }
.m-ic { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 700; }
.m-chat { display: flex; flex-direction: column; min-width: 0; }
.m-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.m-top small { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.m-msgs { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 14px; overflow: hidden; }
.m-msg { display: flex; gap: 9px; }
.m-msg b { font-weight: 700; font-size: 13px; } .m-msg .t { margin-left: 8px; color: var(--muted); font-size: 10px; }
.m-msg p { color: var(--text); }
.av { position: relative; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }
.av i { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; border: 2px solid var(--bg-alt); }
.h1 { background: #e4572e; } .h2 { background: #2b6f77; } .h3 { background: #8a5cf6; } .h4 { background: #d4a017; } .h5 { background: #1d6fe0; }
.n2 { color: #2b8c97; } .n3 { color: #8a5cf6; } .n5 { color: #3a86ff; }
@media (prefers-color-scheme: dark) { .n2 { color: #5fd0dc; } .n3 { color: #b79cff; } .n5 { color: #7ab0ff; } }
.m-quote { margin: 3px 0 4px; padding: 3px 9px; border-left: 3px solid var(--yellow); border-radius: 4px; background: var(--bg-alt); color: var(--muted); font-size: 11px; }
.m-quote b { margin-right: 5px; font-size: 11px; color: var(--ink); }
.m-photo { width: 150px; height: 82px; margin-top: 4px; overflow: hidden; border-radius: 12px; background: linear-gradient(160deg, #ffd66b, #ff9f68 55%, #e4572e); }
.m-photo svg { display: block; width: 100%; height: 100%; } .m-photo path { fill: rgba(29, 43, 83, .55); } .m-photo circle { fill: #fff6d6; }
.m-comp { display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 7px 8px 7px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.m-btn { display: grid; place-items: center; color: var(--muted); }
.m-input { flex: 1; color: var(--muted); font-size: 12px; }
.m-send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); }
.m-p { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.m-p b { display: block; color: var(--ink); font-size: 12px; } .m-p small { display: block; color: var(--muted); font-size: 10px; line-height: 1.25; }
.m-p .av { width: 28px; height: 28px; font-size: 11px; }
.float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.float .ico { color: var(--coral); }
.f1 { left: -22px; bottom: 56px; } .f2 { right: 18px; top: -20px; animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-9px); } }
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 640px; margin: 8px auto 0; width: 100%; }
  .mock { transform: none; }
}
@media (max-width: 600px) {
  .mock-body { grid-template-columns: minmax(0, 1fr); min-height: 0; } .m-rooms, .m-people { display: none; }
  .f1 { left: 8px; bottom: -16px; } .f2 { right: 8px; top: -16px; }
  .cta-row .btn { width: 100%; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-alt { background: var(--bg-alt); }
.sec-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.kicker { margin-bottom: 14px; color: var(--coral); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.sub { margin-top: 18px; color: var(--muted); font-size: 19px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--yellow) 70%, var(--line)); }
.card h3 { margin: 18px 0 10px; font-size: 24px; }
.card p { color: var(--text); font-size: 16px; }
.ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: color-mix(in srgb, var(--yellow) 45%, transparent); color: var(--ink); }
.ic.sm { width: 44px; height: 44px; border-radius: 13px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding: 30px 28px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.steps h3 { margin: 18px 0 10px; font-size: 24px; } .steps p { font-size: 16px; }
.num { position: absolute; top: 22px; right: 24px; color: color-mix(in srgb, var(--ink) 14%, transparent); font: 400 56px/1 var(--head); }
.need { margin-top: 26px; padding: 30px; border: 2px dashed color-mix(in srgb, var(--yellow) 80%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--yellow) 8%, transparent); }
.need h3 { font-size: 24px; margin-bottom: 18px; }
.need ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 860px) { .need ul { grid-template-columns: 1fr; } }
.need li { display: flex; gap: 14px; align-items: flex-start; }
.need b { display: block; color: var(--ink); } .need span:not(.ic) { color: var(--muted); font-size: 15px; }

/* pricing + sign-up */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto 32px; }
.plan { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.plan h3 { font-size: 26px; } .price { margin: 14px 0 18px; color: var(--ink); font: 400 44px/1 var(--head); } .price small { margin-left: 8px; color: var(--muted); font: 400 16px var(--body); }
.plan ul { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; } .plan li { display: flex; gap: 10px; align-items: flex-start; } .plan .ico { color: var(--ok); margin-top: 3px; }
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 960px; margin: 0 auto; padding: clamp(26px, 4vw, 48px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.signup::before { content: ''; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%; background: var(--glow); filter: blur(10px); pointer-events: none; }
.signup > * { position: relative; }
@media (max-width: 800px) { .signup { grid-template-columns: 1fr; } }
.signup h3 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 12px; }
.form { display: grid; gap: 16px; }
.form[hidden] { display: none; }
.field { display: grid; gap: 7px; }
.field > span { color: var(--ink); font-size: 15px; font-weight: 600; }
.field input, .field select { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: 17px var(--body); }
.field input::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field select:focus { outline: none; border-color: var(--yellow-hover); box-shadow: 0 0 0 4px var(--glow); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { color: var(--muted); font-size: 14px; } .fine a { color: var(--ink); }
.note { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--bg-alt); color: var(--ink); font-size: 16px; }
.note.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-weight: 600; } .note.err { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.note[hidden] { display: none; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; color: var(--ink); font: 400 21px/1.3 var(--head); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-alt); transition: transform .2s; }
.faq details[open] .chev { transform: rotate(90deg); background: var(--yellow); color: var(--on-yellow); }
.faq details p { padding: 0 22px 22px; color: var(--text); }

/* footer + plain pages */
.foot { padding: 56px 0 28px; background: var(--ink); color: #c8cee4; }
@media (prefers-color-scheme: dark) { .foot { background: #0a0f1e; } }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-brand img { display: block; height: 36px; width: auto; }
.foot-brand p { margin-top: 12px; max-width: 340px; color: #aab2cf; font-size: 15px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; }
.foot-nav a { color: #e6e9f6; text-decoration: none; font-size: 16px; } .foot-nav a:hover { color: var(--yellow); }
.foot-base { padding-top: 22px; color: #8d96b8; font-size: 14px; }
.prose h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 20px; } .prose h2 { margin: 36px 0 10px; font-size: 26px; } .prose p { margin-bottom: 14px; } .prose a { color: var(--coral); }
.lost { text-align: center; padding: 40px 0; } .lost h1 { font-size: clamp(34px, 5vw, 54px); } .lost .sub { margin-bottom: 28px; }

/* gentle reveal on scroll, only when JavaScript is on (so nothing is ever hidden without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
