/* Forumz: forumz.app. Warm white, ink, the brand purples, and a little orange. */
:root {
  --bg: #faf8f4;
  --bg-2: #f2eefb;
  --card: #ffffff;
  --ink: #18181d;
  --ink-2: #4b4a57;
  --muted: #85838f;
  --line: #e7e2f0;
  --purple: #8b2cf0;
  --purple-deep: #6a00e6;
  --purple-soft: #efe4ff;
  --orange: #ffad0a;
  --head: "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: "Nunito Sans", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121017;
    --bg-2: #1a1622;
    --card: #1f1a29;
    --ink: #f3f1f8;
    --ink-2: #c3bfd0;
    --muted: #8f8a9e;
    --line: #2e2839;
    --purple: #b06cff;
    --purple-deep: #c79bff;
    --purple-soft: #2c1f45;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand img { height: 34px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--purple); }

.btn { display: inline-flex; align-items: center; justify-content: center; font: 800 16px/1 var(--head); background: var(--purple-deep); color: #fff; padding: 16px 24px; border-radius: 999px; border: 0; text-decoration: none; cursor: pointer; box-shadow: 0 6px 0 #4a00a8; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 #4a00a8; }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 #4a00a8; }
.btn-small { padding: 11px 18px; font-size: 15px; box-shadow: 0 4px 0 #4a00a8; }
.btn-small:hover { box-shadow: 0 2px 0 #4a00a8; }
@media (prefers-color-scheme: dark) { .btn { background: #8b2cf0; } }
.link { font-weight: 700; color: var(--ink); text-decoration: none; }
.link:hover { color: var(--purple); }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--purple-deep); background: var(--purple-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
h1 { font-weight: 900; font-size: clamp(42px, 5.3vw, 68px); line-height: 1.04; }
.hl { color: var(--purple-deep); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 2%; right: 4%; bottom: 0.1em; height: 0.16em; background: var(--orange); border-radius: 99px; z-index: -1; opacity: .85; }
.lede { margin-top: 24px; font-size: 19px; color: var(--ink-2); max-width: 31em; }
.hero-cta { margin-top: 34px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }

.hero-art { position: relative; min-height: 500px; }
.post { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 14px 30px -18px rgba(60, 20, 120, .35); width: 400px; }
.post header { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.post .who b { color: var(--ink); }
.post .who i { font-style: normal; color: var(--purple-deep); font-weight: 700; }
.post .when { margin-left: auto; }
.post h3 { font-size: 18px; line-height: 1.3; font-weight: 800; }
.post p { font-size: 15px; color: var(--ink-2); }
.post footer { display: flex; gap: 14px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.votes { color: var(--purple-deep); font-weight: 800; }
.best { margin-left: auto; background: #fff3d6; color: #8a5a00; padding: 3px 10px; border-radius: 99px; font-weight: 800; }
@media (prefers-color-scheme: dark) { .best { background: #3a2c10; color: #ffcf6e; } }
.badge { background: var(--purple-soft); color: var(--purple-deep); font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 99px; margin-left: 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; }
.a1 { background: #e0782f; } .a2 { background: #2f8be0; }
.p1 { top: 0; left: 0; transform: rotate(-1.5deg); }
.p2 { top: 172px; left: 40px; transform: rotate(1deg); width: 330px; }
.mascot-hero { position: absolute; right: -10px; bottom: -30px; width: 230px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-2deg); } }

/* Sections */
.section { padding: 96px 0; }
.section.tint { background: var(--bg-2); }
h2 { font-weight: 900; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; text-align: center; margin-bottom: 16px; }
.split h2 { text-align: left; }
.body { color: var(--ink-2); font-size: 18px; max-width: 34em; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--purple-deep); color: #fff; font: 900 18px var(--head); }
.steps h3 { font-size: 22px; font-weight: 800; margin: 16px 0 8px; }
.steps p { color: var(--ink-2); font-size: 16px; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.mascot-side { width: 100%; max-width: 420px; margin: 0 auto; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { position: relative; padding: 8px 0 8px 34px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--purple-soft); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 15px; width: 8px; height: 5px; border-left: 2.5px solid var(--purple-deep); border-bottom: 2.5px solid var(--purple-deep); transform: rotate(-45deg); }

.chips { list-style: none; padding: 0; margin: 40px auto 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; }
.chips li { background: var(--card); border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink); }
.chips li:nth-child(3n+1) { border-color: color-mix(in srgb, var(--purple) 40%, var(--line)); }
.chips .more { background: var(--purple-soft); color: var(--purple-deep); border-color: transparent; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.t { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.t h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.t p { color: var(--ink-2); font-size: 15.5px; }

.fam { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.fam a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; transition: border-color .15s, transform .15s; }
.fam a:hover { border-color: var(--purple); transform: translateY(-2px); }
.fam b { display: block; font: 800 20px var(--head); margin-bottom: 4px; }
.fam span { color: var(--ink-2); font-size: 15px; }

/* Join */
.join { padding: 96px 0; background: linear-gradient(160deg, #7d08f2, #5a00c4); color: #fff; }
.join-in { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; align-items: center; }
.mascot-join { width: 100%; max-width: 280px; margin: 0 auto; filter: drop-shadow(0 18px 24px rgba(20, 0, 60, .35)); }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-16px); } 60% { transform: translateY(-16px); } }
.join h2 { color: #fff; text-align: left; }
.join p { color: rgba(255, 255, 255, .85); font-size: 18px; max-width: 32em; }
.form { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.form input { flex: 1 1 260px; font: 17px var(--sans); padding: 15px 18px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; }
.form input::placeholder { color: rgba(255, 255, 255, .6); }
.join .btn { background: #fff; color: #4a00a8; box-shadow: 0 6px 0 #3a0090; }
.join .btn:hover { box-shadow: 0 4px 0 #3a0090; }
.join .btn:disabled { opacity: .6; cursor: default; }
.form-msg { min-height: 1.5em; margin-top: 12px; font-weight: 700; font-size: 15px !important; }
.form-msg.good { color: #ffd88a !important; }
.form-msg.bad { color: #ffc2c2 !important; }
.form-fine { margin-top: 4px; font-size: 13px !important; opacity: .75; }

/* Footer */
.foot { padding: 36px 0 48px; color: var(--ink-2); font-size: 14px; }
.foot-in { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.mascot-foot { width: 90px; }
.foot-in .muted { margin-left: auto; }

/* Narrow screens */
@media (max-width: 960px) {
  .hero-in, .split, .join-in { grid-template-columns: 1fr; }
  .hero-art { min-height: 460px; max-width: 520px; width: 100%; margin: 0 auto; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .mascot-side { max-width: 320px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .brand img { height: 28px; }
  .hero { padding: 40px 0 24px; }
  .hero-art { min-height: 0; display: grid; gap: 14px; }
  .post, .p1, .p2 { position: static; width: auto; transform: none; }
  .mascot-hero { position: static; width: 170px; margin: 4px auto 0; }
  .steps, .trust, .fam { grid-template-columns: 1fr; }
  .section, .join { padding: 64px 0; }
  .join h2 { text-align: center; }
  .join-copy { text-align: center; }
  .join p { margin: 0 auto; }
  .mascot-join { max-width: 180px; }
  .foot-in .muted { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Legal pages */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(40px, 5vw, 56px); margin-bottom: 18px; }
.legal h2 { font-size: 26px; text-align: left; margin: 36px 0 8px; }
.legal p { color: var(--ink-2); margin-bottom: 12px; }
.legal a { color: var(--purple-deep); }
.legal .updated { font-weight: 700; color: var(--purple-deep); font-size: 14px; margin-bottom: 10px; }
