/* Public marketing pages (landing, sign-up). Brand: #4a3aff. */
:root {
  --brand: #4a3aff;
  --brand-2: #8b5cf6;
  --brand-3: #06b6d4;
  --ink: #0f1222;
  --ink-2: #3a3f58;
  --muted: #6b7190;
  --line: #e7e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --good: #16a34a;
  --warn: #d97706;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 18, 34, .06), 0 12px 40px rgba(15, 18, 34, .10);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center-block { display: block; text-align: center; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 14px; color: var(--ink-2); }
.sub { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0 auto 40px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.grad { background: linear-gradient(90deg, var(--brand), var(--brand-2) 55%, var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; border-radius: 12px; padding: 12px 20px; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(74, 58, 255, .35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(74, 58, 255, .45); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-white { background: #fff; color: var(--brand); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background:
  radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, .16), transparent 60%),
  radial-gradient(700px 400px at 0% 20%, rgba(6, 182, 212, .10), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 580px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.hero-points li::before { content: '✓'; color: var(--good); font-weight: 800; margin-right: 6px; }
.hero-visual { position: relative; }

/* Product mock */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbff; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #dfe1ec; }
.mock-bar em { font-style: normal; font-size: 13px; color: var(--muted); margin-left: 10px; font-weight: 600; }
.mock-body { padding: 16px; display: grid; gap: 10px; }
.mock-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.mock-row.top { border-color: rgba(74, 58, 255, .35); box-shadow: 0 0 0 4px rgba(74, 58, 255, .07); }
.mock-main { flex: 1; min-width: 0; }
.mock-main strong { display: block; font-size: 15px; }
.mock-main small { color: var(--muted); font-size: 12.5px; }
.ring { --v: 50; width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--v) * 1%), #ecebff 0); }
.ring b { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 14px; }
.ring.big { width: 64px; height: 64px; } .ring.big b { width: 50px; height: 50px; font-size: 20px; }
.tier { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tier.a { background: #dcfce7; color: #166534; } .tier.b { background: #e0e7ff; color: #3730a3; }
.mock-why { margin-top: 4px; padding: 14px; border-radius: 12px; background: var(--bg-alt); }
.why-title { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.why-row { display: grid; grid-template-columns: 90px 1fr 150px; gap: 10px; align-items: center; font-size: 12.5px; margin: 6px 0; }
.why-row span { color: var(--ink-2); font-weight: 600; }
.why-row i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) var(--w), #e3e4ee var(--w)); }
.why-row em { font-style: normal; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 13px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.float-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.float-card .dot.good { background: var(--good); }
.fc-1 { left: -34px; bottom: 54px; animation: bob 6s ease-in-out infinite; }
.fc-2 { right: -18px; top: -18px; animation: bob 7s ease-in-out infinite reverse; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Sections */
.section { padding: 96px 0; }
.section.alt, .band { background: var(--bg-alt); }
.band { padding: 80px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain, .feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.pain-icon { font-size: 28px; margin-bottom: 10px; }
.feature { transition: transform .2s, box-shadow .2s; position: relative; }
.feature::before { content: ''; position: absolute; left: 26px; top: 0; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature p, .pain p { margin: 0; font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 46px; counter-reset: s; }
.step { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 14px; }
.step p { margin: 0; font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; color: var(--ink-2); }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #dcfce7; color: var(--good); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.score-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 10px; }
.score-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.score-head strong { display: block; } .score-head small { color: var(--muted); }
.crit { display: grid; grid-template-columns: 110px auto; gap: 2px 12px; padding: 12px 14px; border-radius: 12px; border-left: 4px solid var(--line); background: var(--bg-alt); }
.crit span { font-weight: 700; font-size: 14px; } .crit b { justify-self: end; font-size: 14px; }
.crit em { grid-column: 1 / -1; font-style: normal; color: var(--muted); font-size: 13px; }
.crit.good { border-left-color: var(--good); } .crit.warn { border-left-color: var(--warn); } .crit.neutral { border-left-color: #a5a9c2; }

.dark { background: linear-gradient(160deg, #101330, #1d1660 60%, #2a1a6e); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.light, .eyebrow.light { color: #c7c4ff; }
.sub.light { color: #c4c6e0; }
.trust > div { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10); }
.trust p { color: #cfd1e6; margin: 0; font-size: 15px; }

details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; margin: 12px 0; background: #fff; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--brand); font-weight: 400; }
details[open] summary::after { content: '–'; }
details p { padding-bottom: 14px; }

.cta-band { padding: 0 0 96px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 52px; border-radius: 24px; color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, #b14cf6); box-shadow: 0 20px 60px rgba(74, 58, 255, .35); }
.cta-inner h2 { color: #fff; margin-bottom: 6px; } .cta-inner p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 17px; }

.footer { border-top: 1px solid var(--line); padding: 44px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--ink-2); font-size: 14px; }
.footer-legal { margin-top: 26px; }

/* ---------------------------------------------------------------- Sign-up */
.page-signup { background: var(--bg-alt); }
.signup { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 69px); }
.signup-pitch { padding: 64px 56px; color: #fff; background: linear-gradient(160deg, #101330, #241a78 65%, #4a3aff); display: flex; flex-direction: column; justify-content: center; }
.signup-pitch h1 { font-size: clamp(30px, 3.4vw, 42px); color: #fff; }
.signup-pitch p { color: #cfd1e6; font-size: 17px; }
.signup-pitch .checks li { color: #e6e7f5; }
.signup-pitch .checks li::before { background: rgba(255, 255, 255, .14); color: #a7f3d0; }
.signup-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.signup-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 34px; }
.signup-card h2 { font-size: 26px; margin-bottom: 6px; }
.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.form-row input { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #d6d8e5; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(74, 58, 255, .12); }
.form-row.invalid input { border-color: #dc2626; }
.form-row .err { color: #dc2626; font-size: 12.5px; min-height: 0; }
.hint { font-size: 12.5px; color: var(--muted); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0 16px; }
.form-alert { display: none; padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-alert.show { display: block; }
.signup-card .btn { width: 100%; }
.signin-line { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.meter { height: 5px; border-radius: 3px; background: #ecedf4; overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; width: 0; background: #dc2626; transition: width .2s, background .2s; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .hero-grid, .split, .signup { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .signup-pitch { padding: 48px 28px; }
  .fc-1 { left: 8px; } .fc-2 { right: 8px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 18px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .why-row { grid-template-columns: 80px 1fr; } .why-row em { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
  .form-row.two { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- Pricing */
.pricing-hero { padding-bottom: 60px; background: radial-gradient(900px 420px at 50% -10%, rgba(139, 92, 246, .14), transparent 60%); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; margin-bottom: 26px; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; }
.plan.highlight { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(74, 58, 255, .08), var(--shadow); }
.plan-badge { position: absolute; top: -13px; left: 30px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan-tag { min-height: 42px; }
.price { margin: 10px 0 20px; display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.price .per { color: var(--muted); }
.plan-cta { width: 100%; margin-bottom: 8px; }
.plan .checks { margin-top: 14px; }
.plan .checks li { font-size: 14.5px; }
.compare-wrap { overflow-x: auto; margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink-2); }
.compare thead th { font-weight: 800; }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--good); font-weight: 800; }
.compare .no { color: #b7bad0; }
.light { color: #c7c4ff; }

/* ---------------------------------------------------------------- Legal */
.legal h1 { font-size: clamp(32px, 4vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal h3 { font-size: 16px; margin-top: 20px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal-draft { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 26px; }
.legal-draft code { background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

/* Founding offer: site-wide bar and pricing notes */
.promo-bar { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; font-size: 14px; padding: 9px 0; text-align: center; }
.promo-bar a { color: #fff; font-weight: 700; text-decoration: underline; margin-left: 6px; }
.promo-bar s { opacity: .7; }
.founding-box { display: inline-block; margin: 0 auto 36px; padding: 12px 18px; border-radius: 12px; background: #f1efff; color: var(--ink-2); border: 1px solid #dcd7ff; font-size: 15px; }
.promo-ends { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-weight: 600; white-space: nowrap; }
.promo-bar .cd { font-variant-numeric: tabular-nums; }
.founding-ends { margin-top: 8px; font-size: 14px; }
.cd-big { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.cd-unit { display: grid; min-width: 64px; padding: 8px 6px; border-radius: 10px; background: #fff; border: 1px solid #dcd7ff; }
.cd-unit b { font-size: 26px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-unit i { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cd-ended .cd-unit b { color: var(--muted); }
@media (max-width: 600px) { .promo-ends { display: block; width: fit-content; margin: 6px auto 0; } .cd-unit { min-width: 54px; } .cd-unit b { font-size: 22px; } }
.price .was { color: var(--muted); font-size: 22px; font-weight: 600; }
.founding-note { color: var(--good); font-weight: 600; margin: -14px 0 16px; }

/* Public directory pages */
.page-dir .dir-hero { padding: 64px 0 36px; background: radial-gradient(900px 380px at 50% -10%, rgba(139, 92, 246, .12), transparent 60%); }
.page-dir .dir-hero h1 { font-size: clamp(32px, 4.4vw, 50px); }
.page-dir .sub.left { margin-left: 0; text-align: left; margin-bottom: 26px; }
.crumbs { margin-bottom: 14px; color: var(--muted); }
.dir-stats { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 0 0 30px; }
.dir-stats.left { justify-content: flex-start; margin-bottom: 0; }
.dir-stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; min-width: 150px; text-align: left; }
.dir-stats b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.dir-stats span { font-size: 13px; color: var(--muted); }
.page-dir .section.dir-list { padding: 24px 0 56px; }
.page-dir .section.dir-group { padding: 56px 0; }
.page-dir .compare-wrap { margin-top: 0; }
.dir-table th, .dir-table td { text-align: left; vertical-align: top; }
.dir-table td:first-child, .dir-table th:first-child { width: 36px; color: var(--muted); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); white-space: nowrap; }
.dir-table .locked { font-weight: 600; white-space: nowrap; }
.more-note { margin-top: 18px; color: var(--ink-2); }
.h3 { font-size: 20px; margin-top: 10px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 26px; }
.link-grid a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.link-grid a:hover { border-color: var(--brand); color: var(--brand); }
.link-grid a span { color: var(--muted); font-weight: 600; }
.dir-cta { padding-top: 56px; }
@media (max-width: 760px) { .dir-table th:nth-child(5), .dir-table td:nth-child(5), .dir-table th:nth-child(1), .dir-table td:nth-child(1) { display: none; } }

/* ---------------------------------------------------------------- Telegram community band */
.community-band { padding: 0 0 80px; }
.community-inner { display: flex; align-items: center; gap: 22px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.community-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: #229ed9; }
.community-text { flex: 1; min-width: 0; }
.community-text h2 { font-size: 22px; margin: 0 0 4px; }
.community-text p { margin: 0; color: var(--ink-2); }
.community-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
@media (max-width: 760px) { .community-inner { flex-direction: column; align-items: flex-start; } }
