/* ===================== COMMUNITY ===================== */

/* hero */
.cm-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.cm-hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cm-hero__fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(80% 70% at 50% 20%, transparent, var(--bg) 92%); }
.cm-hero__in { position: relative; z-index: 2; max-width: 820px; padding-block: clamp(56px, 9vw, 120px); }

/* how it works — connected steps */
.hiw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.hiw__step { padding: 0 14px; position: relative; }
.hiw__step::before { content: ""; position: absolute; top: 23px; left: 0; right: 0; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.hiw__step:first-child::before { left: 50%; }
.hiw__step:last-child::before { right: 50%; }
.hiw__dot { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  margin: 0 auto 18px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--blue-hi); }
.hiw__dot svg { width: 22px; height: 22px; }
.hiw__step:nth-child(even) .hiw__dot { color: var(--purple-hi); }
.hiw__num { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .12em; display: block; text-align: center; margin-bottom: 6px; }
.hiw__step h3 { font-size: 17px; text-align: center; margin-bottom: 8px; }
.hiw__step p { font-size: 13.5px; text-align: center; margin: 0; }
@media (max-width: 900px) { .hiw { grid-template-columns: 1fr 1fr; gap: 32px 0; } .hiw__step::before { display: none; } }
@media (max-width: 520px) { .hiw { grid-template-columns: 1fr; } }

/* board layout */
.board { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
@media (max-width: 980px) { .board { grid-template-columns: 1fr; gap: 32px; } }

/* filter tabs */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--text-2); background: rgba(255,255,255,.02);
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 15px; transition: .15s; }
.filter:hover { color: var(--text); border-color: var(--line-2); }
.filter.on { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); border-color: transparent; color: #fff; }
.filter .n { opacity: .6; margin-left: 5px; }

/* idea cards */
.ideas { display: grid; gap: 14px; }
.idea { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: start;
  background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px; transition: .18s; }
.idea:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }

/* vote pill */
.vote { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 9px 0; width: 56px; background: rgba(255,255,255,.02); transition: .15s; cursor: pointer; user-select: none; }
.vote:hover { border-color: var(--blue); }
.vote.voted { background: rgba(59,130,246,.12); border-color: var(--blue); color: var(--blue-hi); }
.vote svg { width: 16px; height: 16px; }
.vote__n { font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1; }
.vote__l { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--text-3); text-transform: uppercase; }
.vote.voted .vote__l { color: var(--blue-hi); }

.idea__body { min-width: 0; }
.idea__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.idea__cat { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-hi); }
.idea h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -.01em; }
.idea p { font-size: 14px; margin: 0 0 12px; color: var(--text-2); line-height: 1.5; }
.idea__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.idea__by { display: flex; align-items: center; gap: 8px; }
.idea__av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); flex: none; }
.idea__followers { display: inline-flex; align-items: center; gap: 6px; }
.idea__followers svg { width: 13px; height: 13px; }

/* status badge */
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 100px; white-space: nowrap; align-self: start; }
.status .s-dot { width: 7px; height: 7px; border-radius: 50%; }
.status.review { background: rgba(249,115,22,.12); color: var(--warning); } .status.review .s-dot { background: var(--warning); }
.status.approved { background: rgba(59,130,246,.12); color: var(--blue-hi); } .status.approved .s-dot { background: var(--blue); }
.status.building { background: rgba(139,92,246,.12); color: var(--purple-hi); } .status.building .s-dot { background: var(--purple); animation: blip 1.8s infinite; }
.status.live { background: rgba(34,197,94,.12); color: #4ade80; } .status.live .s-dot { background: var(--success); }
.status.team { background: rgba(34,211,238,.12); color: var(--cyan); } .status.team .s-dot { background: var(--cyan); }
@media (max-width: 560px) {
  .idea { grid-template-columns: 52px 1fr; }
  .idea > .status { grid-column: 2; justify-self: start; margin-top: 4px; }
  .vote { width: 48px; }
}

/* submit panel (sticky) */
#submit { scroll-margin-top: 110px; }
.submit-panel { position: sticky; top: 88px; background: linear-gradient(180deg, var(--surface-2), var(--navy));
  border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-lg); }
.submit-panel h3 { font-size: 20px; margin-bottom: 6px; }
.submit-panel .sub { font-size: 13.5px; color: var(--text-2); margin-bottom: 20px; }
.submit-panel__actions { display: grid; gap: 14px; }
.submit-panel__actions .btn { width: 100%; justify-content: center; }
.submit-panel__auth { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.submit-panel__auth a { color: var(--blue-hi); }
.submit-panel__auth a:hover { color: var(--text); }
.fld { margin-bottom: 14px; }
.fld label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--text-3); margin-bottom: 7px; text-transform: uppercase; }
.fld .req { color: var(--purple-hi); }
/* .input/.select/.textarea base + focus + error live in sf.css (global). */
.textarea { resize: vertical; min-height: 92px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23647089' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.fld .msg { font-size: 11.5px; color: #f87171; margin-top: 5px; display: none; font-family: var(--mono); }
.fld.err .msg { display: block; }
.submit-ok { text-align: center; padding: 30px 10px; }
.submit-ok .tick { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.3); color: #4ade80; }
.submit-ok .tick svg { width: 24px; height: 24px; }
.privacy { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* benefits */
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit__ico { width: 42px; height: 42px; flex: none; border-radius: var(--r); display: grid; place-items: center;
  background: rgba(139,92,246,.10); border: 1px solid rgba(139,92,246,.24); color: var(--purple-hi); }
.benefit__ico svg { width: 20px; height: 20px; }
.benefit h3 { font-size: 16px; margin-bottom: 6px; }
.benefit p { font-size: 14px; margin: 0; }

/* stat band */
.cm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 680px) { .cm-stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; } }

/* ---- positioning "combines" strip ---- */
.combines { display: flex; flex-wrap: wrap; gap: 10px; }
.combine { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 13px; color: var(--text-2);
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 100px; padding: 9px 16px; }
.combine b { color: var(--text); font-weight: 500; }
.combine .x { color: var(--text-3); }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.versus__card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.versus__card.old { background: rgba(255,255,255,.015); }
.versus__card.new { background: linear-gradient(140deg, rgba(59,130,246,.10), rgba(139,92,246,.10)); border-color: var(--line-2); }
.versus__lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.versus__card.old p { font-size: 18px; color: var(--text-3); margin: 0; text-decoration: line-through; text-decoration-color: var(--line-2); }
.versus__card.new p { font-size: 20px; color: var(--text); margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -.01em; }
.versus__arrow { color: var(--blue-hi); }
.versus__arrow svg { width: 28px; height: 28px; }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; gap: 14px; } .versus__arrow { transform: rotate(90deg); justify-self: center; } }

/* ---- 7-step workflow timeline ---- */
.wf { display: grid; gap: 0; max-width: 920px; }
.wf__step { display: grid; grid-template-columns: 54px 1fr; gap: 22px; position: relative; padding-bottom: 30px; }
.wf__step:last-child { padding-bottom: 0; }
.wf__step::before { content: ""; position: absolute; left: 26px; top: 54px; bottom: -2px; width: 1.5px;
  background: repeating-linear-gradient(180deg, var(--line-2) 0 5px, transparent 5px 11px); }
.wf__step:last-child::before { display: none; }
.wf__num { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--display); font-weight: 600; font-size: 19px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--blue-hi); }
.wf__step:nth-child(even) .wf__num { color: var(--purple-hi); }
.wf__card { background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.wf__card h3 { font-size: 19px; margin-bottom: 7px; }
.wf__card > p { font-size: 14.5px; margin: 0 0 14px; }
.wf__out { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wf__out .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-right: 2px; }
@media (max-width: 560px) { .wf__step { grid-template-columns: 44px 1fr; gap: 16px; } .wf__num { width: 44px; height: 44px; font-size: 16px; } .wf__step::before { left: 21px; top: 46px; } }

/* ---- roles grid ---- */
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; }
.role { background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; transition: .18s; }
.role:hover { border-color: var(--line-2); transform: translateY(-2px); }
.role__ico { width: 42px; height: 42px; border-radius: var(--r); display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(59,130,246,.10); border: 1px solid rgba(59,130,246,.22); color: var(--blue-hi); }
.role__ico svg { width: 20px; height: 20px; }
.role:nth-child(even) .role__ico { background: rgba(139,92,246,.10); border-color: rgba(139,92,246,.24); color: var(--purple-hi); }
.role h3 { font-size: 16px; margin-bottom: 5px; }
.role p { font-size: 13.5px; margin: 0; }

/* ---- revenue model cards ---- */
.rev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .rev-grid { grid-template-columns: 1fr; } }
.rev { background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.rev__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rev__tag { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.rev h3 { font-size: 19px; }
.rev > p { font-size: 14px; margin: 0 0 20px; }
.split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-bottom: 14px; background: var(--bg); }
.split span { height: 100%; }
.split-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.split-legend div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.split-legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.split-legend b { color: var(--text); font-family: var(--mono); margin-left: auto; }

/* ---- gamification ---- */
.levels { display: flex; align-items: center; justify-content: space-between; gap: 0; position: relative; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
.level { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; flex: 1 1 0; min-width: 110px; position: relative; padding: 0 6px; }
.level::after { content: ""; position: absolute; top: 27px; left: 50%; right: -50%; height: 2px; background: var(--line-2); z-index: 0; }
.level:last-child::after { display: none; }
.level__badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--surface-2); border: 1.5px solid var(--line-2); color: var(--text-2); font-family: var(--display); font-weight: 600; }
.level__badge svg { width: 24px; height: 24px; }
.level:nth-child(1) .level__badge { color: var(--text-2); }
.level:nth-child(2) .level__badge { border-color: rgba(59,130,246,.5); color: var(--blue-hi); }
.level:nth-child(3) .level__badge { border-color: rgba(34,211,238,.5); color: var(--cyan); }
.level:nth-child(4) .level__badge { border-color: rgba(139,92,246,.5); color: var(--purple-hi); }
.level:nth-child(5) .level__badge { border-color: transparent; background: linear-gradient(180deg, var(--blue), var(--purple)); color: #fff; box-shadow: 0 0 24px -6px var(--glow-purple); }
.level__nm { font-family: var(--display); font-size: 14px; font-weight: 500; }
.level__xp { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.points { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.point { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.02);
  border: 1px solid var(--line); border-radius: var(--r); padding: 13px 16px; }
.point span { font-size: 14px; color: var(--text-2); }
.point b { font-family: var(--display); font-size: 15px; color: var(--blue-hi); font-weight: 600; }

/* ---- first projects ---- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.proj { background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; transition: .18s; display: flex; flex-direction: column; }
.proj:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.proj__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.proj h3 { font-size: 18px; margin-bottom: 8px; }
.proj p { font-size: 13.5px; margin: 0 0 18px; }
.proj__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.proj__roles { display: flex; align-items: center; }
.proj__roles .av { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--navy); background: linear-gradient(135deg, var(--blue), var(--purple)); margin-left: -8px; }
.proj__roles .av:first-child { margin-left: 0; }
.proj__roles .more { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-left: 8px; }
.proj__join { font-family: var(--mono); font-size: 12px; color: var(--blue-hi); display: inline-flex; align-items: center; gap: 6px; }
.proj:hover .proj__join .arr { transform: translateX(3px); }

/* idea metrics strip */
.idea__metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0 14px; }
.imetric .imetric__top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.imetric__bar { height: 5px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.imetric__fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--purple)); }
@media (max-width: 600px) { .idea__metrics { grid-template-columns: 1fr 1fr; } }

/* sections overview */
.cm-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; }
.cm-sec { display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.02); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px; transition: .15s; }
.cm-sec:hover { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.cm-sec__ico { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--blue-hi); background: rgba(59,130,246,.08); }
.cm-sec__ico svg { width: 18px; height: 18px; }
.cm-sec b { font-family: var(--display); font-size: 14.5px; font-weight: 500; }
.cm-sec span { font-size: 12px; color: var(--text-3); }

/* consent checkbox row (idea submission form) */
.check-row { display: flex !important; align-items: flex-start; gap: 10px; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.45; cursor: pointer; }
.check-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--purple); flex: none; }
.check-row span { font-family: var(--sans); font-size: 13px; color: var(--text-2); }
