/* Public site (sales page, help center): same palette as the dashboard's dark theme */
:root {
  color-scheme: dark;
  --bg: #111110; --bg-2: #161615; --surface: #1a1a19; --surface-2: #232321; --border: #2f2f2c;
  --text: #ffffff; --text-2: #c3c2b7; --text-3: #8f8e86;
  --accent: #3987e5; --accent-2: #5a9cf0; --accent-soft: #1d2d42;
  --good: #1baf7a; --warn: #eda100; --bad: #e66767;
  --radius: 8px; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(17,17,16,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo img { height: 26px; width: auto; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { color: var(--text-2); }
.top nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .top nav .hide-sm { display: none; } .top nav { gap: 14px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 6px; font-weight: 650; font-size: 15px; border: 1px solid var(--border); color: var(--text); background: var(--surface); cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.btn.lg { padding: 14px 26px; font-size: 16px; }

/* hero */
.hero { padding: 84px 0 56px; text-align: center; background: radial-gradient(900px 420px at 50% -10%, rgba(57,135,229,.22), transparent 70%); }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--accent-2); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(27,175,122,.2); }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -.02em; margin: 0 auto 18px; max-width: 880px; }
h1 em { font-style: normal; color: var(--accent-2); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 720px; margin: 0 auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--text-3); margin-top: 14px; }

/* product preview */
.preview { margin: 52px auto 0; max-width: 980px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); padding: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.45); text-align: left; }
.pv-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.pv-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.pv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pv-card { background: var(--surface); border-radius: var(--radius); padding: 14px; }
.pv-card .l { font-size: 12px; color: var(--text-3); }
.pv-card .v { font-size: 22px; font-weight: 750; margin-top: 2px; }
.pv-card .d { font-size: 12px; color: var(--good); }
.pv-wide { grid-column: span 2; }
.pv-live { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.pv-live b { color: var(--good); }
.pv-floor { position: relative; height: 150px; margin-top: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.pv-floor .zone { position: absolute; border: 1px dashed var(--border); border-radius: 6px; font-size: 11px; color: var(--text-3); padding: 4px 6px; }
.pv-floor .p { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(57,135,229,.25); animation: walk 6s ease-in-out infinite alternate; }
.pv-floor .p.g { background: var(--good); box-shadow: 0 0 0 4px rgba(27,175,122,.25); animation-duration: 8s; }
.pv-floor .p.o { background: var(--warn); box-shadow: 0 0 0 4px rgba(237,161,0,.25); animation-duration: 7s; }
@keyframes walk { to { transform: translate(40px, 16px); } }
@media (prefers-reduced-motion: reduce) { .pv-floor .p { animation: none; } }
.pv-bars { display: flex; align-items: flex-end; gap: 5px; height: 150px; margin-top: 10px; }
.pv-bars span { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; }
@media (max-width: 760px) { .pv-grid { grid-template-columns: repeat(2, 1fr); } .pv-wide { grid-column: span 2; } }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 12px; }
.sub { color: var(--text-2); font-size: 18px; margin: 0 0 40px; max-width: 700px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--text-3); font-weight: 650; font-size: 17px; padding: 26px 0 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.feature .fi { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* plans (same cards as the dashboard) */
.pl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 14px; margin-top: 30px; align-items: stretch; text-align: left; }
@media (max-width: 1080px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pl-grid { grid-template-columns: 1fr; } }
.pl-card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 24px 20px 20px; display: flex; flex-direction: column; }
.pl-card.popular { box-shadow: 0 0 0 2px var(--accent); border-top-left-radius: 0; border-top-right-radius: 0; }
.pl-tag { position: absolute; left: -2px; right: -2px; bottom: 100%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 20px; border-radius: 8px 8px 0 0; }
.pl-card h3 { margin: 0; font-size: 20px; }
.pl-tagline { margin: 6px 0 14px; font-size: 14px; color: var(--text-2); min-height: 2.8em; }
.pl-price { font-size: 30px; font-weight: 800; color: var(--accent-2); letter-spacing: -.01em; }
.pl-price span { font-size: 14px; font-weight: 600; color: var(--text-2); margin-left: 3px; }
.pl-feat { list-style: none; margin: 16px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; flex: 1; }
.pl-feat li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.4; }
.pl-feat li.off { color: var(--text-3); }
.pl-ic { flex: none; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.pl-feat li.off .pl-ic { background: var(--surface-2); color: var(--text-3); }
.pl-ic .ico { width: 12px; height: 12px; stroke-width: 3; }
.pl-note { font-size: 13px; color: var(--text-3); margin-top: 18px; text-align: center; }

/* faq */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--surface); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-3); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--text-2); font-size: 15px; }

.final { text-align: center; }
.final .box { background: linear-gradient(135deg, #1d2d42, #1a1a19); border: 1px solid var(--border); border-radius: 14px; padding: 48px 24px; }

footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; }
footer nav a { color: var(--text-2); }

/* help center */
.help { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 40px 20px 80px; }
.help aside { position: sticky; top: 84px; align-self: start; font-size: 15px; }
.help aside h4 { margin: 18px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.help aside a { display: block; padding: 4px 0; color: var(--text-2); }
.help aside a:hover { color: var(--text); text-decoration: none; }
.help article { min-width: 0; max-width: 760px; }
.help article h1 { font-size: 36px; text-align: left; margin: 0 0 8px; }
.help article h2 { font-size: 26px; margin: 48px 0 10px; padding-top: 12px; scroll-margin-top: 80px; }
.help article h3 { font-size: 18px; margin: 26px 0 6px; scroll-margin-top: 80px; }
.help article p, .help article li { color: var(--text-2); }
.help article ol, .help article ul { padding-left: 22px; }
.help article li { margin: 4px 0; }
.help code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: 14px; color: var(--text); }
.help pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
.help pre code { background: none; padding: 0; }
.note { background: var(--accent-soft); border-radius: var(--radius); padding: 12px 16px; color: var(--text) !important; font-size: 15px; }
.support-box { background: var(--surface); border-radius: var(--radius); padding: 22px; margin-top: 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.support-box p { margin: 4px 0 0; color: var(--text-2); }
@media (max-width: 860px) { .help { grid-template-columns: 1fr; gap: 10px; } .help aside { position: static; display: none; } }

.wa { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #1faa53; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 20; }
.wa:hover { text-decoration: none; filter: brightness(1.08); }
.wa svg { width: 28px; height: 28px; fill: #fff; }
