/* Community pages (home / campaign / feedback / admin).
   Content styles only — shell (nav, footer, tokens) comes from core.css + app-theme.css. */

.community { background: var(--bg); }
.community .site-main { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 0; }

.cm-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- shared type ---------- */
.cm-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); font-weight: 600;
}
.cm-eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--line-strong);
}
.cm-title {
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  line-height: .98; letter-spacing: -.045em; font-weight: 600;
  margin: 16px 0 22px;
}
.cm-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cm-lede {
  font-size: clamp(14px, 1.15vw, 16px); line-height: 1.85;
  color: var(--muted); max-width: 560px;
}
.cm-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px;
  font-size: 11px; letter-spacing: .04em; color: var(--dim);
}
.cm-meta span { display: inline-flex; align-items: center; gap: 7px; }
.cm-meta span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-2); opacity: .8;
}

.cm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--cta-bg); color: var(--cta-fg);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 16px 34px -22px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
.cm-btn:hover { transform: translateY(-1px); box-shadow: 0 20px 40px -22px color-mix(in srgb, var(--accent) 90%, transparent); }
.cm-btn:active { transform: translateY(0) scale(.995); }
.cm-btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); box-shadow: none; }
.cm-btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.cm-btn.small { height: 38px; padding: 0 16px; font-size: 12px; }
.cm-btn[disabled] { opacity: .5; cursor: default; transform: none; }

.cm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- section rhythm ---------- */
.cm-section { padding: clamp(64px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.cm-sec-head {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px;
  align-items: start; margin-bottom: clamp(30px, 4vw, 52px);
}
.cm-sec-no { font-size: 11px; letter-spacing: .16em; color: var(--dim); padding-top: .5em; }
.cm-sec-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -.03em; line-height: 1.1; }
.cm-sec-head p { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 520px; }

/* ---------- home hero ---------- */
.cm-hero {
  display: grid; grid-template-columns: 1.04fr .96fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(26px, 5vw, 56px) 0 clamp(40px, 6vw, 76px);
}
.cm-hero-copy { min-width: 0; }
.cm-hero-art {
  position: relative; min-height: 640px;
  display: flex; align-items: center; justify-content: center;
}
.cm-phone {
  position: absolute; border-radius: 34px; overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--surface);
  box-shadow: 0 50px 100px -60px rgba(20, 18, 24, .65), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.cm-phone img { width: 100%; height: auto; display: block; }
.cm-phone.main { width: clamp(180px, 21vw, 280px); left: 5%; z-index: 2; }
.cm-phone.sub { width: clamp(140px, 15.5vw, 205px); right: 2%; bottom: 5%; z-index: 1; opacity: .98; }

.cm-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; padding: 26px 0 0; border-top: 1px solid var(--line);
}
.cm-fact { display: flex; flex-direction: column; gap: 6px; }
.cm-fact b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.cm-fact span { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ---------- home features ---------- */
.cm-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 34px); }
.cm-feature { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.cm-feature .n { font-size: 10.5px; letter-spacing: .16em; color: var(--dim); }
.cm-feature h3 { margin: 14px 0 10px; font-size: clamp(17px, 1.5vw, 20px); letter-spacing: -.02em; }
.cm-feature p { font-size: 13px; line-height: 1.85; color: var(--muted); }

/* ---------- placeholders ---------- */
.cm-ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cm-ph {
  min-height: 210px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.cm-ph .k { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.cm-ph p { margin-top: 18px; font-size: 13px; line-height: 1.85; color: var(--muted); }
.cm-ph .dots { margin-top: 26px; font-size: 20px; letter-spacing: .38em; color: var(--dim); }

/* ---------- campaign hero ---------- */
.cm-camp-hero {
  display: grid; grid-template-columns: .92fr 1.08fr;
  gap: clamp(28px, 4vw, 56px); align-items: stretch;
  padding: clamp(20px, 4vw, 44px) 0 clamp(36px, 5vw, 64px);
}
.cm-like {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(26px, 3.4vw, 40px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.cm-like::before {
  content: ""; position: absolute; width: 420px; height: 420px; left: 50%; top: 44%;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 68%);
}
.cm-like .k { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.cm-like-btn {
  position: relative; width: clamp(132px, 15vw, 168px); height: clamp(132px, 15vw, 168px);
  margin: 24px 0 22px; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  display: grid; place-items: center;
  background: var(--grad);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent-2) 80%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .18s cubic-bezier(.2, .9, .3, 1.5), box-shadow .25s;
}
.cm-like-btn:hover { transform: scale(1.035); }
.cm-like-btn:active { transform: scale(.94); }
.cm-like-btn svg { width: 46%; height: 46%; fill: currentColor; }
.cm-like-count { display: flex; align-items: baseline; gap: 9px; position: relative; }
.cm-like-count b { font-size: clamp(34px, 4vw, 46px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cm-like-count span { font-size: 12px; color: var(--dim); }
.cm-like-note { margin-top: 14px; font-size: 11.5px; line-height: 1.8; color: var(--dim); position: relative; }
.cm-camp-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.cm-camp-copy .cm-title { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }

.float-plus {
  position: absolute; left: 50%; top: 12%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: var(--accent-2); pointer-events: none;
  animation: cm-plus 900ms cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes cm-plus {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -58px) scale(1.05); }
}

/* ---------- stats ---------- */
.cm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cm-stat {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.cm-stat b { display: block; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cm-stat span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .06em; color: var(--dim); }

/* ---------- issues ---------- */
.cm-issues {
  margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.issue { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-top: 1px solid var(--line); }
.issue:first-child { border-top: 0; }
.issue .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); flex: none; }
.issue .txt { flex: 1; font-size: 13.5px; letter-spacing: -.005em; }
.issue .ver { font-size: 11px; color: var(--dim); white-space: nowrap; }
.chip {
  font-size: 10px; letter-spacing: .05em; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); color: var(--muted);
}
.chip.planned { color: #a9760e; border-color: rgba(201, 138, 22, .32); background: rgba(201, 138, 22, .07); }
.chip.fixing { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.chip.fixed { color: #2e9e6b; border-color: rgba(46, 158, 107, .32); background: rgba(46, 158, 107, .07); }
.empty { padding: 30px 22px; text-align: center; font-size: 12.5px; color: var(--dim); }

/* ---------- roadmap ---------- */
.cm-road { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; }
.ver {
  padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
}
.ver.current {
  border-color: color-mix(in srgb, var(--accent-2) 42%, transparent);
  box-shadow: 0 30px 60px -50px color-mix(in srgb, var(--accent) 70%, transparent);
}
.ver .tag { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.ver .no { margin-top: 8px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; }
.ver ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.ver li { position: relative; padding-left: 13px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.ver li::before { content: ""; position: absolute; left: 0; top: .66em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2); }

/* ---------- beta ---------- */
.cm-beta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.cm-names { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.name-pill {
  font-size: 11.5px; padding: 6px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.cm-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 32px);
}

/* ---------- forms ---------- */
.cm-page-head { padding: clamp(18px, 3.4vw, 44px) 0 clamp(28px, 4vw, 46px); max-width: 860px; }
.cm-fb-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(22px, 3vw, 38px); align-items: start; }
.cm-form { padding: clamp(24px, 3.4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }
.cm-field { margin-top: 22px; }
.cm-field:first-of-type { margin-top: 0; }
.cm-label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.cm-label .no { font-size: 10px; letter-spacing: .12em; color: var(--dim); }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); background: var(--bg-deep);
  border-radius: 14px; padding: 13px 15px; font-size: 13.5px; color: var(--fg); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.input { height: 48px; }
.textarea { min-height: 170px; resize: vertical; line-height: 1.7; }
.input:focus, .textarea:focus, .select:focus {
  border-color: color-mix(in srgb, var(--accent-2) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 12%, transparent);
  background: var(--surface);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 11px; line-height: 1.7; color: var(--dim); }
.success {
  display: none; margin-top: 14px; padding: 13px 15px; border-radius: 14px; font-size: 12.5px;
  background: rgba(46, 158, 107, .08); border: 1px solid rgba(46, 158, 107, .28); color: #2e9e6b;
}
.success.show { display: block; }

.cm-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 12px); }
.cm-side { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.cm-side h3 { font-size: 14px; letter-spacing: -.01em; }
.cm-side .hint { margin-top: 6px; }
.cm-side .cm-stats { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cm-side .cm-stat { padding: 12px 14px; border-radius: 14px; background: var(--bg-deep); }
.cm-side .cm-stat b { font-size: 20px; }

.cm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 72px); padding-top: 26px; border-top: 1px solid var(--line); }
.cm-step { display: flex; gap: 14px; }
.cm-step .n { font-size: 11px; letter-spacing: .12em; color: var(--dim); padding-top: 3px; }
.cm-step b { display: block; font-size: 13.5px; }
.cm-step span { display: block; margin-top: 5px; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* ---------- admin ---------- */
.cm-admin-list { display: grid; gap: 10px; margin-top: 16px; }
.admin-item { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.admin-item .row { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.admin-item h3 { font-size: 14px; }
.admin-item p { margin-top: 6px; font-size: 12.5px; color: var(--muted); white-space: pre-wrap; }
.admin-item .actions { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cm-hero, .cm-camp-hero, .cm-fb-grid, .cm-beta { grid-template-columns: 1fr; }
  .cm-hero-art { min-height: 540px; order: 2; }
  .cm-phone.main { left: 10%; }
  .cm-phone.sub { right: 10%; }
  .cm-features, .cm-ph-grid { grid-template-columns: 1fr 1fr; }
  .cm-road { grid-template-columns: 1fr; }
  .cm-aside { position: static; }
}
@media (max-width: 720px) {
  .cm-features, .cm-ph-grid, .cm-facts, .cm-steps { grid-template-columns: 1fr; }
  .cm-stats { grid-template-columns: 1fr 1fr; }
  .cm-sec-head { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .cm-form .form-row { grid-template-columns: 1fr; }
  .cm-hero-art { min-height: 440px; }
  .cm-hero-art { min-height: 460px; }
  .cm-phone.main { left: 4%; }
  .cm-phone.sub { right: 2%; bottom: 2%; }
  .issue { align-items: flex-start; flex-wrap: wrap; }
}

/* ---------- entrance ---------- */
@keyframes cm-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.cm-hero-copy, .cm-camp-copy { animation: cm-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.cm-hero-art, .cm-like { animation: cm-rise .9s cubic-bezier(.2, .7, .2, 1) .06s both; }
@media (prefers-reduced-motion: reduce) {
  .cm-hero-copy, .cm-camp-copy, .cm-hero-art, .cm-like { animation: none; }
}

.cm-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
