/* =====================================================================
   Public website (landing, marketplace, legal, sign-in/up, errors)
   Own design system on top of Bootstrap's grid/forms. Light + dark.
   ===================================================================== */
:root {
    --s-primary: #0b5ed7;
    --s-violet: #5b3df5;
    --s-grad: linear-gradient(135deg, #0d6efd 0%, #5b3df5 100%);
    --s-bg: #ffffff;
    --s-bg-alt: #f5f8fc;
    --s-surface: #ffffff;
    --s-text: #0f172a;
    --s-muted: #5b6b82;
    --s-border: #e3e9f2;
    --s-ring: rgba(13, 110, 253, 0.18);
    --s-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --s-shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.16);
    --s-radius: 16px;
    --s-ok: #198754;
    --s-warn: #b7791f;
    --s-bad: #d63a4a;
}

html[data-theme="dark"] {
    --s-primary: #6ea8fe;
    --s-bg: #0b111b;
    --s-bg-alt: #101826;
    --s-surface: #151e2d;
    --s-text: #e8edf6;
    --s-muted: #9aa8bd;
    --s-border: #25324a;
    --s-ring: rgba(91, 140, 253, 0.28);
    --s-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --s-shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
    --s-ok: #4cc38a;
    --s-warn: #e8b64a;
    --s-bad: #f0707e;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site {
    margin: 0;
    background: var(--s-bg);
    color: var(--s-text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.site h1, body.site h2, body.site h3, body.site h4, body.site h5 { color: var(--s-text); letter-spacing: -0.02em; }
body.site a { color: var(--s-primary); }
body.site .text-muted { color: var(--s-muted) !important; }
body.site :focus-visible { outline: 3px solid var(--s-primary); outline-offset: 2px; border-radius: 6px; }

.s-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.s-skip { position: fixed; left: 12px; top: -60px; z-index: 3000; background: #0b5ed7; color: #fff !important; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .15s; }
.s-skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.s-btn {
    white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 0.97rem;
    border: 1px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.2;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.s-btn:hover { transform: translateY(-1px); text-decoration: none; }
.s-btn-primary { background: var(--s-grad); color: #fff !important; box-shadow: 0 8px 22px rgba(13, 110, 253, 0.32); }
.s-btn-primary:hover { box-shadow: 0 12px 28px rgba(13, 110, 253, 0.42); }
.s-btn-ghost { background: var(--s-surface); color: var(--s-text) !important; border-color: var(--s-border); }
.s-btn-ghost:hover { border-color: var(--s-primary); color: var(--s-primary) !important; }
.s-btn-lg { padding: 15px 28px; font-size: 1.04rem; }
.s-btn-sm { padding: 8px 16px; font-size: 0.88rem; border-radius: 10px; }
.s-btn-block { width: 100%; }
.s-btn-light { background: #fff; color: #0f172a !important; }

/* ---------- header ---------- */
.s-header { position: sticky; top: 0; z-index: 1000; background: color-mix(in srgb, var(--s-bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.s-header.is-scrolled { border-bottom-color: var(--s-border); box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06); }
.s-header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.s-logo { display: inline-flex; align-items: center; }
.s-logo { text-decoration: none; }
.s-logo .on-dark { display: none; }
html[data-theme="dark"] .s-logo .on-light { display: none; }
html[data-theme="dark"] .s-logo .on-dark { display: block; }
.s-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.s-nav a { white-space: nowrap; padding: 8px 13px; border-radius: 10px; color: var(--s-muted) !important; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.s-nav a:hover { color: var(--s-text) !important; background: var(--s-bg-alt); }
.s-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.s-icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--s-border); background: var(--s-surface); color: var(--s-muted); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; cursor: pointer; }
.s-icon-btn:hover { color: var(--s-primary); border-color: var(--s-primary); }
.s-icon-btn .when-dark { display: none; }
html[data-theme="dark"] .s-icon-btn .when-dark { display: inline; }
html[data-theme="dark"] .s-icon-btn .when-light { display: none; }
.s-burger { display: none; }

@media (max-width: 1060px) {
    .s-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--s-bg); border-bottom: 1px solid var(--s-border); padding: 12px 20px 18px; margin: 0; box-shadow: var(--s-shadow); }
    .s-nav.is-open { display: flex; }
    .s-nav a { padding: 12px 10px; }
    .s-burger { display: inline-flex; }
}

/* small phones: the header only has room for the logo, theme, sign in and the menu button; the sign-up link moves into the menu */
.s-nav-xs { display: none; }
@media (max-width: 480px) {
    .s-hide-xs { display: none !important; }
    .s-nav .s-nav-xs { display: block; font-weight: 700; color: var(--s-primary); }
}

/* ---------- sections ---------- */
.s-section { padding: 88px 0; }
.s-section.alt { background: var(--s-bg-alt); }
.s-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--s-primary); margin-bottom: 12px; }
.s-title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 800; line-height: 1.15; margin: 0 0 14px; }
.s-lead { font-size: 1.12rem; color: var(--s-muted); max-width: 640px; }
.s-head { text-align: center; margin-bottom: 52px; }
.s-head .s-lead { margin: 0 auto; }

/* reveal on scroll */
.s-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.s-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .s-reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- hero ---------- */
.s-hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.s-hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 640px; background: radial-gradient(60% 60% at 25% 20%, rgba(13, 110, 253, 0.16), transparent 70%), radial-gradient(50% 50% at 80% 10%, rgba(91, 61, 245, 0.16), transparent 70%); pointer-events: none; }
.s-hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.s-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--s-surface); border: 1px solid var(--s-border); font-size: 0.85rem; font-weight: 600; color: var(--s-muted); box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05); margin-bottom: 22px; }
.s-pill b { background: var(--s-grad); color: #fff; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.s-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.07; margin: 0 0 20px; }
.s-hero h1 .grad, .s-grad-text { background: var(--s-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-hero .s-lead { margin: 0 auto 30px; font-size: 1.2rem; }
.s-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.s-fine { margin-top: 16px; font-size: 0.86rem; color: var(--s-muted); }
.s-fine i { color: var(--s-ok); margin-right: 4px; }
.s-hero-art { position: relative; margin: 56px auto 0; max-width: 1020px; }

/* ---------- product mock (browser frame + app UI) ---------- */
.m-frame { background: var(--s-surface); border: 1px solid var(--s-border); border-radius: 18px; box-shadow: var(--s-shadow-lg); overflow: hidden; text-align: left; }
.m-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--s-bg-alt); border-bottom: 1px solid var(--s-border); }
.m-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4dbe8; display: inline-block; }
html[data-theme="dark"] .m-bar i { background: #2d3a52; }
.m-bar .m-url { margin-left: 14px; flex: 1; max-width: 340px; padding: 4px 12px; border-radius: 8px; background: var(--s-surface); border: 1px solid var(--s-border); font-size: 0.75rem; color: var(--s-muted); }
.m-app { display: grid; grid-template-columns: 190px 1fr; min-height: 380px; font-size: 13px; }
.m-side { background: var(--s-bg-alt); border-right: 1px solid var(--s-border); padding: 14px 10px; }
.m-side .m-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 4px 8px 14px; font-size: 13px; }
.m-side .m-brand img { width: 22px; height: 22px; border-radius: 6px; }
.m-side a, .m-side span.m-link { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; color: var(--s-muted) !important; font-weight: 500; text-decoration: none; margin-bottom: 2px; }
.m-side .active { background: rgba(13, 110, 253, 0.12); color: var(--s-primary) !important; font-weight: 600; }
.m-main { padding: 18px 20px; background: var(--s-surface); }
.m-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.m-h b { font-size: 16px; }
.m-chip { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(13, 110, 253, 0.12); color: var(--s-primary); }
.m-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.m-kpi { border: 1px solid var(--s-border); border-radius: 12px; padding: 10px 12px; background: var(--s-surface); }
.m-kpi small { display: block; font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--s-muted); font-weight: 600; }
.m-kpi strong { font-size: 20px; display: block; line-height: 1.2; }
.m-kpi em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--s-ok); }
.m-kpi em.bad { color: var(--s-bad); }
.m-card { border: 1px solid var(--s-border); border-radius: 12px; overflow: hidden; background: var(--s-surface); }
.m-card > header { padding: 10px 14px; font-weight: 700; font-size: 12px; border-bottom: 1px solid var(--s-border); display: flex; justify-content: space-between; align-items: center; }
.m-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--s-border); }
.m-row:last-child { border-bottom: 0; }
.m-ico { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: 0 0 28px; }
.m-ico.blue { background: rgba(13, 110, 253, 0.12); color: var(--s-primary); }
.m-ico.amber { background: rgba(224, 168, 54, 0.18); color: var(--s-warn); }
.m-ico.red { background: rgba(214, 58, 74, 0.14); color: var(--s-bad); }
.m-ico.green { background: rgba(25, 135, 84, 0.14); color: var(--s-ok); }
.m-row .grow { flex: 1; min-width: 0; }
.m-row .grow b { display: block; font-size: 12px; }
.m-row .grow small { color: var(--s-muted); font-size: 11px; }
.m-num { font-weight: 800; font-size: 14px; }
.m-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.m-table th { text-align: left; font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--s-muted); padding: 8px 12px; background: var(--s-bg-alt); border-bottom: 1px solid var(--s-border); }
.m-table td { padding: 9px 12px; border-bottom: 1px solid var(--s-border); }
.m-table tr:last-child td { border-bottom: 0; }
.m-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.m-badge.green { background: rgba(25, 135, 84, 0.14); color: var(--s-ok); }
.m-badge.blue { background: rgba(13, 110, 253, 0.13); color: var(--s-primary); }
.m-badge.amber { background: rgba(224, 168, 54, 0.2); color: var(--s-warn); }
.m-badge.red { background: rgba(214, 58, 74, 0.14); color: var(--s-bad); }
.m-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 14px; }
.m-bars span { flex: 1; border-radius: 6px 6px 0 0; background: var(--s-grad); opacity: 0.85; }
.m-float { position: absolute; background: var(--s-surface); border: 1px solid var(--s-border); border-radius: 14px; box-shadow: var(--s-shadow-lg); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; z-index: 2; }
.m-float b { display: block; font-size: 13px; }
.m-float small { color: var(--s-muted); font-size: 11.5px; }
.m-float.a { left: -26px; bottom: 54px; animation: s-float 6s ease-in-out infinite; }
.m-float.b { right: -22px; top: 92px; animation: s-float 7s ease-in-out infinite reverse; }
@keyframes s-float { 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .m-float { animation: none; } }
@media (max-width: 900px) {
    .m-app { grid-template-columns: 1fr; }
    .m-side { display: none; }
    .m-kpis { grid-template-columns: repeat(2, 1fr); }
    .m-float { display: none; }
}

/* ---------- marketplaces strip ---------- */
.s-strip { padding: 34px 0 6px; text-align: center; }
.s-strip p { color: var(--s-muted); font-size: 0.9rem; margin-bottom: 14px; }
.s-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.s-chip { padding: 8px 18px; border: 1px solid var(--s-border); border-radius: 999px; background: var(--s-surface); font-weight: 600; font-size: 0.92rem; color: var(--s-muted); }

/* ---------- feature cards ---------- */
.s-grid { display: grid; gap: 22px; }
.s-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.s-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.s-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .s-grid.cols-3, .s-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .s-grid.cols-3, .s-grid.cols-4, .s-grid.cols-2 { grid-template-columns: 1fr; } }
.s-card { background: var(--s-surface); border: 1px solid var(--s-border); border-radius: var(--s-radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; height: 100%; }
.s-card:hover { transform: translateY(-3px); box-shadow: var(--s-shadow); border-color: color-mix(in srgb, var(--s-primary) 40%, var(--s-border)); }
.s-card h3 { font-size: 1.08rem; font-weight: 700; margin: 16px 0 6px; }
.s-card p { margin: 0; color: var(--s-muted); font-size: 0.95rem; }
.s-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--s-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; box-shadow: 0 8px 18px rgba(13, 110, 253, 0.25); }

/* ---------- steps ---------- */
.s-steps { counter-reset: step; }
.s-step { position: relative; padding-top: 6px; }
.s-step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--s-surface); border: 2px solid var(--s-primary); color: var(--s-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
.s-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.s-step p { color: var(--s-muted); margin: 0; }

/* ---------- tour tabs ---------- */
.s-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.s-tab { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--s-border); background: var(--s-surface); color: var(--s-muted); font-weight: 600; cursor: pointer; font-size: 0.93rem; }
.s-tab[aria-selected="true"] { background: var(--s-grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3); }
.s-panel[hidden] { display: none; }
.s-panel .caption { text-align: center; color: var(--s-muted); margin-top: 18px; }

/* ---------- deep dives ---------- */
.s-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.s-split.flip { grid-template-columns: 1.1fr 1fr; }
.s-split.flip .s-split-text { order: 2; }
@media (max-width: 900px) { .s-split, .s-split.flip { grid-template-columns: 1fr; gap: 28px; } .s-split.flip .s-split-text { order: 0; } }
.s-ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.s-ticks li { display: flex; gap: 10px; margin-bottom: 10px; color: var(--s-text); }
.s-ticks i { color: var(--s-ok); margin-top: 3px; }
.s-code { background: #0b111b; color: #cfe0ff; border-radius: 14px; padding: 18px 20px; font-family: "JetBrains Mono", Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.7; overflow-x: auto; box-shadow: var(--s-shadow-lg); }
.s-code .k { color: #7fb0ff; } .s-code .s { color: #8fe0b0; } .s-code .c { color: #6b7a90; }

/* ---------- security ---------- */
.s-trust { display: flex; gap: 16px; }
.s-trust .s-ico { flex: 0 0 48px; }
.s-trust h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 4px; }
.s-trust p { margin: 0; color: var(--s-muted); font-size: 0.93rem; }

/* ---------- pricing ---------- */
.s-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .s-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.s-plan { position: relative; background: var(--s-surface); border: 1px solid var(--s-border); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; }
.s-plan.featured { border: 2px solid var(--s-primary); box-shadow: 0 24px 56px rgba(13, 110, 253, 0.18); transform: translateY(-8px); }
@media (max-width: 960px) { .s-plan.featured { transform: none; } }
.s-plan .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--s-grad); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.s-plan h3 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.s-plan .price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 14px 0 2px; }
.s-plan .price small { font-size: 1rem; color: var(--s-muted); font-weight: 500; letter-spacing: 0; }
.s-plan .sub { color: var(--s-muted); font-size: 0.88rem; margin-bottom: 22px; }
.s-plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.s-plan li { display: flex; gap: 10px; margin-bottom: 11px; font-size: 0.95rem; }
.s-plan li i { color: var(--s-ok); margin-top: 3px; }
.s-compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--s-surface); border: 1px solid var(--s-border); border-radius: 16px; overflow: hidden; font-size: 0.94rem; }
.s-compare th, .s-compare td { padding: 14px 18px; border-bottom: 1px solid var(--s-border); text-align: center; }
.s-compare th:first-child, .s-compare td:first-child { text-align: left; font-weight: 500; }
.s-compare thead th { background: var(--s-bg-alt); font-weight: 700; }
.s-compare tbody tr:last-child td { border-bottom: 0; }
.s-compare .yes { color: var(--s-ok); }
.s-compare .no { color: var(--s-muted); }
.s-table-wrap { overflow-x: auto; }

/* ---------- faq ---------- */
.s-faq { max-width: 820px; margin: 0 auto; }
.s-faq details { background: var(--s-surface); border: 1px solid var(--s-border); border-radius: 14px; margin-bottom: 12px; transition: border-color .2s; }
.s-faq details[open] { border-color: color-mix(in srgb, var(--s-primary) 45%, var(--s-border)); box-shadow: var(--s-shadow); }
.s-faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: "\F4FE"; font-family: "bootstrap-icons"; color: var(--s-primary); font-size: 1.1rem; transition: transform .2s; }
.s-faq details[open] summary::after { content: "\F2EA"; }
.s-faq .answer { padding: 0 22px 20px; color: var(--s-muted); }

/* ---------- final cta + contact ---------- */
.s-cta-band { background: var(--s-grad); border-radius: 28px; padding: 64px 28px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.s-cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 80% at 90% 0%, rgba(255, 255, 255, 0.18), transparent 70%); pointer-events: none; }
.s-cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.s-cta-band p { color: rgba(255, 255, 255, 0.95); font-size: 1.1rem; margin-bottom: 28px; }
.s-form label { font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; display: block; }
.s-form .form-control { border-radius: 12px; padding: 12px 14px; background: var(--s-surface); color: var(--s-text); border-color: var(--s-border); }
.s-form .form-control:focus { border-color: var(--s-primary); box-shadow: 0 0 0 4px var(--s-ring); }
.s-hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

/* ---------- footer ---------- */
.s-footer { background: #0b111b; color: #9aa8bd; padding: 64px 0 28px; margin-top: 0; }
.s-footer a { color: #cbd5e1; text-decoration: none; }
.s-footer a:hover { color: #fff; }
.s-footer h4 { color: #fff !important; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.s-footer ul { list-style: none; padding: 0; margin: 0; }
.s-footer li { margin-bottom: 9px; font-size: 0.93rem; }
.s-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 800px) { .s-footer .cols { grid-template-columns: 1fr 1fr; } }
.s-footer .base { border-top: 1px solid #1f2b42; margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.86rem; }

/* ---------- cookie banner ---------- */
.s-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2500; max-width: 560px; background: var(--s-surface); border: 1px solid var(--s-border); border-radius: 16px; box-shadow: var(--s-shadow-lg); padding: 18px 20px; display: none; }
.s-consent.show { display: block; }
.s-consent p { margin: 0 0 12px; font-size: 0.9rem; color: var(--s-muted); }

/* ---------- inner pages (legal, marketplace) ---------- */
.s-page-head { background: var(--s-bg-alt); border-bottom: 1px solid var(--s-border); padding: 48px 0 40px; }
.s-page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin: 0 0 6px; }
.s-doc { max-width: 780px; margin: 0 auto; padding: 48px 20px 70px; }
.s-doc h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .5rem; }
.s-doc p, .s-doc li { color: var(--s-muted); line-height: 1.8; }

/* ---------- dark-mode touches for Bootstrap pieces used on public pages ---------- */
html[data-theme="dark"] body.site .card,
html[data-theme="dark"] body.site .mp-card,
html[data-theme="dark"] body.site .mp-panel { background: var(--s-surface); border-color: var(--s-border); color: var(--s-text); }
html[data-theme="dark"] body.site .form-control,
html[data-theme="dark"] body.site .form-select { background: var(--s-surface); border-color: var(--s-border); color: var(--s-text); }
html[data-theme="dark"] body.site .alert { border-color: transparent; }
html[data-theme="dark"] body.site .text-dark { color: var(--s-text) !important; }

/* ---------- sign in / sign up (split screen) ---------- */
.a-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 5fr) 6fr; }
.a-brand { position: sticky; top: 0; height: 100vh; align-self: start; color: #fff; background: linear-gradient(150deg, #0b1b4a 0%, #1e1b4b 50%, #3b2bb8 100%); overflow: hidden; }
.a-brand::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 100% 0%, rgba(91, 61, 245, 0.55), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(13, 110, 253, 0.4), transparent 70%); pointer-events: none; }
.a-brand-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; }
.a-brand h2 { color: #fff !important; font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 800; line-height: 1.2; margin: 0 0 14px; }
.a-brand p { color: rgba(255, 255, 255, 0.78); margin: 0 0 26px; max-width: 420px; }
.a-brand ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.a-brand li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, 0.92); font-size: 0.97rem; }
.a-brand li i { flex: none; width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, 0.14); display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.a-brand small { color: rgba(255, 255, 255, 0.6); }
.a-brand .a-logo img { height: 34px; width: auto; }
.a-main { display: flex; flex-direction: column; min-height: 100vh; background: var(--s-bg); }
.a-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; }
.a-top .a-mlogo { display: none; }
.a-top .a-mlogo img { height: 30px; width: auto; }
.a-top .a-mlogo .on-dark { display: none; }
html[data-theme="dark"] .a-top .a-mlogo .on-light { display: none; }
html[data-theme="dark"] .a-top .a-mlogo .on-dark { display: block; }
.a-top .a-back { white-space: nowrap; color: var(--s-muted); font-size: 0.9rem; text-decoration: none; font-weight: 500; }
.a-top .a-back:hover { color: var(--s-primary); }
.a-center { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 12px 20px 36px; }
.a-card { width: 100%; max-width: 420px; }
.a-card.a-wide { max-width: 560px; }
.a-card h1 { font-size: 1.75rem; font-weight: 800; margin: 0 0 6px; }
.a-card .a-sub { color: var(--s-muted); margin: 0 0 24px; }
.a-card label { font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; display: block; color: var(--s-text); }
.a-card .form-control, .a-card .form-select { border-radius: 12px; padding: 12px 14px; background: var(--s-surface); color: var(--s-text); border-color: var(--s-border); }
.a-card .form-control:focus, .a-card .form-select:focus { border-color: var(--s-primary); box-shadow: 0 0 0 4px var(--s-ring); }
.a-card .form-control.is-invalid, .a-card .form-select.is-invalid { border-color: var(--s-bad); background-image: none; }
.a-card .invalid-feedback { display: block; color: var(--s-bad); font-weight: 600; font-size: 0.84rem; }
.a-card .alert { border-radius: 12px; font-size: 0.92rem; }
.a-field { margin-bottom: 16px; }
.a-pw { position: relative; }
.a-pw .form-control { padding-right: 46px; }
.a-pw .a-eye { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--s-muted); border-radius: 10px; cursor: pointer; }
.a-pw .a-eye:hover { color: var(--s-primary); }
.a-meter { height: 5px; border-radius: 4px; background: var(--s-border); margin-top: 8px; overflow: hidden; }
.a-meter > span { display: block; height: 100%; width: 0; background: var(--s-bad); transition: width .2s, background .2s; }
.a-meter-text { font-size: 0.78rem; color: var(--s-muted); margin-top: 4px; min-height: 1.2em; }
.a-step { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--s-muted); margin: 26px 0 14px; }
.a-step:first-child { margin-top: 0; }
.a-step b { width: 24px; height: 24px; border-radius: 50%; background: var(--s-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; letter-spacing: 0; }
.a-step::after { content: ""; flex: 1; height: 1px; background: var(--s-border); }
.a-links { text-align: center; margin-top: 18px; font-size: 0.92rem; color: var(--s-muted); }
.a-links a { font-weight: 600; text-decoration: none; }
.a-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-methods input { position: absolute; opacity: 0; pointer-events: none; }
.a-methods label { margin: 0; padding: 12px; text-align: center; border: 1px solid var(--s-border); border-radius: 12px; cursor: pointer; font-weight: 600; background: var(--s-surface); color: var(--s-muted); }
.a-methods input:checked + label { border-color: var(--s-primary); color: var(--s-primary); background: var(--s-ring); }
.a-methods input:focus-visible + label { outline: 3px solid var(--s-primary); outline-offset: 2px; }
.a-otp { text-align: center; font-size: 1.7rem; font-weight: 800; letter-spacing: 0.4em; padding-left: 0.4em; }
.a-result { text-align: center; }
.a-result .a-ico { width: 64px; height: 64px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.9rem; margin-bottom: 14px; }
.a-result .a-ico.ok { background: rgba(25, 135, 84, 0.14); color: var(--s-ok); }
.a-result .a-ico.wait { background: rgba(183, 121, 31, 0.15); color: var(--s-warn); }
.a-foot { text-align: center; padding: 16px 20px 24px; font-size: 0.82rem; color: var(--s-muted); }
.a-foot a { color: var(--s-muted); text-decoration: none; }
.a-foot a:hover { color: var(--s-primary); }
.a-loading { position: fixed; inset: 0; z-index: 4000; background: rgba(8, 12, 24, 0.62); backdrop-filter: blur(3px); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; font-weight: 600; }
.a-loading.show { display: flex; }
@media (max-width: 900px) {
    .a-shell { grid-template-columns: 1fr; }
    .a-brand { display: none; }
    .a-top .a-mlogo { display: block; }
    .a-top { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { .a-meter > span { transition: none; } }

/* ---------- error pages (self-contained: no database, session or routes needed) ---------- */
.e-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 20px; position: relative; overflow: hidden; }
.e-wrap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 50% 0%, var(--s-ring), transparent 70%); pointer-events: none; }
.e-wrap > * { position: relative; }
.e-logo img { height: 34px; width: auto; }
.e-logo .on-dark { display: none; }
html[data-theme="dark"] .e-logo .on-light { display: none; }
html[data-theme="dark"] .e-logo .on-dark { display: inline-block; }
.e-code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin: 40px 0 8px; background: var(--s-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e-wrap h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 10px; }
.e-wrap p { color: var(--s-muted); max-width: 460px; margin: 0 auto 26px; }
.e-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.e-foot { margin-top: 46px; font-size: 0.84rem; color: var(--s-muted); }
.e-foot a { color: var(--s-muted); }

/* ---------- brand lockup: mark + short name + full name (all text comes from the website settings) ---------- */
.s-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--s-text); line-height: 1.1; text-decoration: none; }
.s-brand img { height: 34px; width: 34px; display: block; flex: none; }
.s-brand-text { display: flex; flex-direction: column; }
.s-brand-text b { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.02em; }
.s-brand-text small { white-space: nowrap; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--s-muted); margin-top: 2px; }
.s-brand-light { color: #fff; }
.s-brand-light .s-brand-text small { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 520px) { .s-brand-text small { display: none; } }
.s-footer .s-brand { color: #fff; }
.s-footer .s-brand-text small { color: rgba(255, 255, 255, 0.65); }
.s-social { display: flex; gap: 8px; margin-top: 16px; }
.s-social a { width: 36px; height: 36px; border-radius: 10px; background: #172036; color: #cbd5e1; display: inline-flex; align-items: center; justify-content: center; }
.s-social a:hover { background: #0b5ed7; color: #fff; }
.s-contact-lines { list-style: none; padding: 0; margin: 14px 0 0; font-size: 0.9rem; }
.s-contact-lines li { margin-bottom: 6px; display: flex; gap: 8px; }
.s-contact-lines i { color: var(--s-primary); }
