/* Shared look for the public pages: rounder, softer, same space theme. Loaded after space.css. */
body.space .pagehead { position: relative; padding-top: 64px; }
body.space .pagehead h1, body.space .hero-block h1 { font-weight: 700; }
body.space .lede { color: var(--muted); }

/* Buttons everywhere become pills */
body.space .btn-discord, body.space .btn-outline, body.space .btn-secondary, body.space .btn-big,
body.space button, body.space .btn-link, body.space .btn-nav { border-radius: 8px; }
body.space .btn-discord { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-bot); height: 48px; padding: 0 24px; }
body.space .btn-discord:hover { background: #a99eff; transform: translateY(-1px); }
body.space .btn-outline { border-color: var(--line2); background: rgba(255, 255, 255, .04); }
body.space .btn-link { background: var(--link); color: var(--link-ink); }
body.space button.small { border-radius: 8px; }

/* Cards, boxes and panels */
body.space .card, body.space .box, body.space .cta-card, body.space .note, body.space .panel { border-radius: var(--r-card); background: rgba(255, 255, 255, .025); border-color: var(--line); }
body.space .note { border-radius: 12px; }
body.space input, body.space select, body.space textarea { border-radius: 10px; background: rgba(255, 255, 255, .04); border-color: var(--line2); }
body.space input:focus, body.space select:focus, body.space textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(139, 124, 255, .25); }
body.space code { border-radius: 8px; background: rgba(139, 124, 255, .12); border-color: rgba(139, 124, 255, .25); }
body.space table { border-radius: 12px; overflow: hidden; }

/* Features: each group is a rounded card */
body.space .fgroup { background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: var(--r-card); padding: 34px; margin-top: 18px; }
body.space .fgroup:first-of-type { margin-top: 36px; }
body.space .fitem .icon { color: var(--link); }
/* How it works */
body.space .steps { border-left: 1px solid var(--line2); }
body.space .step::before { background: var(--link); box-shadow: 0 0 0 4px rgba(62, 216, 242, .18); }
/* About */
body.space .principles { border-radius: var(--r-card); background: transparent; gap: 14px; border: 0; }
body.space .principle { border: 1px solid var(--line); border-radius: var(--r-card); background: rgba(255, 255, 255, .025); }
/* Premium step cards and plan cards */
body.space .steps3 > *, body.space .plans > *, body.space .plan { border-radius: var(--r-card); }
body.space .legal-content { max-width: 78ch; }
body.space .legal-content h2 { font-size: 24px; margin-top: 34px; }
@media (max-width: 820px) { body.space .fgroup { padding: 24px; } }

/* Soft glow behind the top of every inner page, like the reference sites */
body.space .pagehead, body.space .hero-block { position: relative; }
body.space .pagehead::before, body.space .hero-block::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -80px; width: min(1000px, 100vw); height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(139, 124, 255, .22), rgba(139, 124, 255, .06) 60%, transparent); pointer-events: none; }

/* Delete my data */
body.space .dd h2 { margin-top: 28px; }
body.space .dd-state { margin: 22px 0 8px; padding: 18px 20px; border: 1px solid var(--line2); border-radius: 12px; background: rgba(255,255,255,.03); }
body.space .dd-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
body.space .dd-row input { flex: 1 1 180px; min-width: 0; }
body.space .dd .muted { color: var(--muted); }

/* hiring-popup: pop-up, button padding and nav padding fixes */
body.space .btn-link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 34px; padding: 0 14px; font-size: 13px; font-weight: 600; line-height: 1; border: 1px solid transparent; text-decoration: none; white-space: nowrap; }
body.space .btn-link:hover { filter: brightness(1.1); text-decoration: none; }
@media (min-width: 981px) { body.space .nav-links a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; } }

.hp-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 4, 10, .72); }
.hp-box { position: relative; width: min(440px, 100%); box-sizing: border-box; padding: 28px 26px 20px; border-radius: 12px; background: #12121c; color: #f2f2f7; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.hp-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(139, 124, 255, .16); color: #b4aaff; }
.hp-box h2 { margin: 12px 0 8px; font-size: 24px; line-height: 1.2; color: #fff; }
.hp-text { margin: 0 0 10px; color: #b9b9c8; line-height: 1.5; }
.hp-open { margin: 0 0 10px; font-size: 14px; color: #d8d8e4; }
.hp-note { margin: 0 0 18px; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; line-height: 1.45; color: #d8d8e4; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.hp-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hp-btn { flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 42px; padding: 0 16px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.hp-btn:hover { text-decoration: none; filter: brightness(1.1); }
.hp-main { background: #8b7cff; color: #0b0a1f; }
.hp-ghost { background: transparent; color: #f2f2f7; border-color: rgba(255, 255, 255, .22); }
.hp-later { display: block; margin: 12px auto 0; padding: 6px 10px; background: none; border: 0; color: #9d9db0; font-size: 13px; cursor: pointer; }
.hp-later:hover { color: #fff; }
.hp-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #9d9db0; font-size: 22px; line-height: 1; cursor: pointer; }
.hp-close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hp-box a:focus-visible, .hp-box button:focus-visible { outline: 2px solid #b4aaff; outline-offset: 2px; }
