/* Socialysis public site. Same tokens as the dashboard (web/src/index.css + tailwind.config.js):
   royal-blue hero with the magenta glow, frosted glass cards on a soft brand wash, pill buttons,
   Plus Jakarta Sans display over Inter body. */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --page: 246 247 249; --surface: 255 255 255; --surface-2: 255 255 255; --surface-3: 241 242 246; --surface-4: 230 232 238;
  --line: 223 226 233; --line-2: 205 209 219;
  --ink: 21 21 28; --ink-2: 66 66 78; --ink-3: 92 92 104;
  --accent: 14 71 216; --ok: 8 112 8; --bad: 192 38 38;
  --rim: 255 255 255; --rim-a: .9; --tile-a: .66; --shade: 16 24 40; --ambient-a: .10;
  --kx-blue: #114AE7; --kx-royal: #0E47D8; --kx-deep: #023693; --kx-magenta: #C000C0; --kx-coral: #FF304B;
  --pos: #3987E5; --mix: #C98500; --neu: #6E6E6A; --neg: #E66767;
  --display: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: 9 9 12; --surface: 14 14 18; --surface-2: 21 21 26; --surface-3: 28 28 35; --surface-4: 37 37 46;
    --line: 40 40 49; --line-2: 54 54 64;
    --ink: 236 236 241; --ink-2: 186 186 196; --ink-3: 158 158 170;
    --accent: 141 178 255; --ok: 92 214 92; --bad: 255 145 145;
    --rim-a: .12; --tile-a: .62; --shade: 0 0 0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: rgb(var(--page)); color: rgb(var(--ink));
  font: 15px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; position: relative; isolation: isolate; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42rem 30rem at 8% -6%, rgb(17 74 231 / var(--ambient-a)), transparent 70%),
              radial-gradient(36rem 28rem at 100% 105%, rgb(192 0 192 / calc(var(--ambient-a) * .7)), transparent 70%); }
::selection { background: rgba(17, 92, 250, .35); }
:focus-visible { outline: 2px solid #4D86FF; outline-offset: 2px; border-radius: 8px; }
a { color: rgb(var(--accent)); }
[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.muted { color: rgb(var(--ink-3)); font-weight: 400; }
.icon { width: 18px; height: 18px; flex: none; }

/* ── glass ── */
.glass-card { position: relative; border-radius: 1.25rem;
  background: linear-gradient(165deg, rgb(var(--surface-2) / calc(var(--tile-a) + .22)) 0%, rgb(var(--surface-2) / var(--tile-a)) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgb(var(--rim) / var(--rim-a));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / calc(var(--rim-a) * .9)), 0 14px 34px -20px rgb(17 74 231 / .35), 0 2px 6px -2px rgb(var(--shade) / .08); }
.glass-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 38%; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / calc(var(--rim-a) * .35)), transparent); }
.glass-card > * { position: relative; }
@media (prefers-reduced-transparency: reduce) { .glass-card { background: rgb(var(--surface-2)); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* ── top bar: the dashboard's glass pill ── */
.topbar { position: sticky; top: 12px; z-index: 20; margin-top: 12px; }
.topbar-inner { display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 7px; border-radius: 999px;
  background: rgb(var(--surface-2) / .62); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgb(var(--rim) / calc(var(--rim-a) * .8)); box-shadow: 0 12px 32px -16px rgb(var(--shade) / .35); }
.brandmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.logo-bubble { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none; background: rgb(255 255 255 / .96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 16px -8px rgba(0,0,0,.45); }
.logo-bubble img { height: 20px; width: auto; display: block; }
.brandname { font: 700 16px/1.1 var(--display); letter-spacing: -.01em; }
.brandname small { display: block; font: 500 11.5px/1.3 Inter, sans-serif; color: rgb(var(--ink-3)); letter-spacing: 0; margin-top: 2px; }
.topbar .chip { margin-left: auto; }
@media (max-width: 480px) { .topbar .chip { display: none; } }

/* ── chips and buttons ── */
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600;
  border: 1px solid rgb(var(--line)); color: rgb(var(--ink-2)); background: rgb(var(--surface-3)); white-space: nowrap; }
.chip .icon { width: 14px; height: 14px; }
.chip-accent { color: rgb(var(--accent)); border-color: rgb(17 74 231 / .25); background: rgb(17 74 231 / .08); }
.chip-glass { color: #fff; border-color: rgb(255 255 255 / .28); background: rgb(255 255 255 / .14); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px;
  font: 700 15.5px/1 var(--display); padding: 15px 24px; transition: transform .15s ease, background-color .15s ease; }
.btn .icon { width: 17px; height: 17px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-primary { color: #fff; background: var(--kx-blue); box-shadow: 0 10px 22px -12px rgb(17 74 231 / .8); }
.btn-primary:hover { background: var(--kx-royal); transform: translateY(-1px); }
.btn-white { color: #0B0B12; background: #fff; box-shadow: 0 10px 22px -12px rgba(0,0,0,.55); }
.btn-white:hover { transform: translateY(-1px); background: #F3F6FF; }
.btn-block { width: 100%; }

/* ── hero: royal blue with the magenta glow ── */
.kx-hero { position: relative; overflow: hidden; border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(192,0,192,.55) 0%, rgba(192,0,192,0) 45%), linear-gradient(115deg, #114AE7 0%, #023693 100%);
  box-shadow: 0 30px 60px -34px rgb(2 54 147 / .7); }
.kx-hero::after { content: ""; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
  background: linear-gradient(90deg, var(--kx-magenta), var(--kx-coral)); opacity: .5; filter: blur(48px); }
.kx-hero > * { position: relative; z-index: 1; }
.hero { margin-top: 22px; padding: 46px 42px 42px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 38px; align-items: center; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; padding: 30px 20px 22px; gap: 24px; } }
.hero h1 { font: 800 clamp(32px, 4.6vw, 50px)/1.04 var(--display); letter-spacing: -.028em; margin: 16px 0 16px; }
.hero h1 span { color: rgb(255 255 255 / .8); }
.hero .lede { font-size: 16.5px; color: rgb(255 255 255 / .84); margin: 0; max-width: 33em; }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-panel { border-radius: 22px; padding: 22px; background: rgb(0 0 0 / .24); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgb(255 255 255 / .14); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12); }
.hero-panel label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .72); margin: 0 0 8px; }
.hero-panel input { width: 100%; font: 500 17px Inter, sans-serif; color: #15151C; background: #fff; border: 0; border-radius: 14px;
  padding: 15px 16px; margin: 0 0 12px; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
.hero-panel input::placeholder { color: #8A8A95; }
.hero-panel input:focus { outline: 3px solid rgb(255 255 255 / .55); outline-offset: 1px; }
.hero-panel .row2 input { font-size: 15px; padding: 12px 14px; }
.comps { margin: 0 0 12px; }
.comps summary { cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 600; color: rgb(255 255 255 / .88); margin-bottom: 10px; }
.comps summary::-webkit-details-marker { display: none; }
.comps summary::before { content: "+ "; }
.comps[open] summary::before { content: "− "; }
.comps summary .muted { color: rgb(255 255 255 / .6); }
.hero-panel .fine { color: rgb(255 255 255 / .68); text-align: center; }
.hero-panel .error { color: #FFD2D8; }
.captcha { margin: 2px 0 12px; }

/* ── sections ── */
.section-title { font: 800 clamp(24px, 3.4vw, 34px)/1.12 var(--display); letter-spacing: -.022em; margin: 0 0 6px; }
.section-sub { color: rgb(var(--ink-2)); margin: 0 0 22px; font-size: 15.5px; }
.how { margin: 48px 0 8px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } }
.tile { padding: 22px; }
.tile h3 { font: 700 18px/1.3 var(--display); margin: 14px 0 6px; letter-spacing: -.01em; }
.tile p { margin: 0; color: rgb(var(--ink-2)); font-size: 14.5px; }
.bubble { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff;
  background: linear-gradient(150deg, #2A6BFF, #023693); box-shadow: 0 8px 18px -8px rgb(17 74 231 / .8), inset 0 1px 0 rgb(255 255 255 / .25); }
.bubble-accent { background: linear-gradient(150deg, var(--kx-magenta), var(--kx-coral)); box-shadow: 0 8px 18px -8px rgb(192 0 192 / .7), inset 0 1px 0 rgb(255 255 255 / .25); }
.step-no { float: right; font: 800 12px var(--display); color: rgb(var(--ink-3)); letter-spacing: .1em; margin-top: 4px; }

/* ── building ── */
.building { margin: 26px auto 0; padding: 36px 26px 30px; text-align: center; }
.building h2 { font: 800 clamp(22px, 3.4vw, 30px)/1.2 var(--display); letter-spacing: -.02em; margin: 16px 0 4px; }
.ring { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; padding: 4px;
  background: conic-gradient(from 0deg, var(--kx-magenta), var(--kx-coral), var(--kx-blue), var(--kx-magenta)); animation: spin 1.1s linear infinite; }
.ring::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: rgb(var(--surface-2)); }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { list-style: none; padding: 0; margin: 22px auto 0; max-width: 440px; text-align: left; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: rgb(var(--ink-3)); font-weight: 500; }
.steps li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgb(var(--line-2)); }
.steps li.on { color: rgb(var(--ink)); }
.steps li.on::before { border-color: var(--kx-blue); background: rgb(17 74 231 / .12); box-shadow: 0 0 0 4px rgb(17 74 231 / .10); }
.steps li.ok { color: rgb(var(--ink-2)); }
.steps li.ok::before { border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat, linear-gradient(150deg, #2A6BFF, #023693); }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } }

/* ── forms (lead) ── */
.panel { padding: 28px; margin: 0 0 18px; }
.panel h2 { font: 800 clamp(22px, 3.2vw, 30px)/1.18 var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
.panel .sub { color: rgb(var(--ink-2)); margin: 0 0 20px; }
.lead { scroll-margin-top: 90px; }
.lead label { display: block; font-size: 13px; font-weight: 600; color: rgb(var(--ink-2)); margin: 0 0 6px; }
.lead input[type=text], .lead input[type=email], .lead input[type=tel], .lead input:not([type]) {
  width: 100%; font: 15px Inter, sans-serif; color: rgb(var(--ink)); background: rgb(var(--surface-3)); border: 1px solid rgb(var(--line));
  border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.lead input:focus { outline: none; border-color: var(--kx-blue); box-shadow: 0 0 0 3px rgb(17 74 231 / .15); }
input[aria-invalid=true] { border-color: var(--neg) !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.lead .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: rgb(var(--ink-2)); margin: 4px 0 10px; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--kx-blue); }
.notice { margin: 6px 0 16px; padding: 12px 14px; border-radius: 12px; background: rgb(var(--surface-3) / .7); line-height: 1.55; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 12.5px; color: rgb(var(--ink-3)); margin: 10px 0 0; }
.error { color: rgb(var(--bad)); font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.done { text-align: center; padding: 36px 26px; }
.done .bubble { width: 56px; height: 56px; }
.done h2 { margin-top: 16px; }

#preview { margin: 26px 0 18px; }
.no-preview { margin-top: 26px; }

.foot { padding-top: 36px; padding-bottom: 46px; font-size: 13px; color: rgb(var(--ink-3)); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.foot a { color: rgb(var(--ink-2)); }
.foot .brandmark { margin-right: auto; }
.foot .logo-bubble { width: 30px; height: 30px; }
.foot .logo-bubble img { height: 15px; }

/* ── document pages (privacy, confirm) ── */
.doc { padding-top: 26px; padding-bottom: 10px; }
.doc .paper { padding: 32px 28px; }
@media (max-width: 560px) { .doc .paper { padding: 24px 18px; } }
.doc h1 { font: 800 clamp(26px, 4.4vw, 38px)/1.12 var(--display); letter-spacing: -.022em; margin: 0 0 12px; }
.doc h2 { font: 700 18px/1.3 var(--display); margin: 26px 0 6px; }
.doc p, .doc li { color: rgb(var(--ink-2)); }
.doc .lang { display: flex; gap: 8px; margin: 0 0 18px; }
.doc .lang a { text-decoration: none; }
.doc hr { border: 0; border-top: 1px solid rgb(var(--line)); margin: 38px 0; }
.confirm { margin: 40px auto 0; max-width: 620px; padding: 36px 28px; text-align: center; }
.confirm h1 { font: 800 clamp(28px, 5vw, 40px)/1.08 var(--display); letter-spacing: -.022em; margin: 16px 0 8px; }
.confirm .sub { color: rgb(var(--ink-2)); margin: 0 0 22px; font-size: 16px; }
.confirm form { margin: 0; }

/* ── after-the-audit page (/next) ── */
.next-panel p { margin: 0 0 16px; color: rgb(255 255 255 / .86); font-size: 15px; }
.next-panel .btn + .btn { margin-top: 10px; }
.btn-ghost-light { color: #fff; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .28); }
.btn-ghost-light:hover { background: rgb(255 255 255 / .2); }
.next-cta { margin: 40px 0 8px; padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.next-cta h2 { font: 800 22px/1.2 var(--display); letter-spacing: -.015em; margin: 0 0 4px; }
.next-cta p { margin: 0; color: rgb(var(--ink-2)); }
a.btn, a.chip { text-decoration: none; }
