.btn-sign,
.btn-ghost,
.btn-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  line-height: 1.2;
}

.btn-sign {
  height: 56px;
  border: 0;
  background: var(--lime-500);
  color: var(--cta-text);
}

.btn-sign:hover { background: var(--lime-600); }
.btn-sign:active { transform: scale(0.98); }

.btn-sign.pulse { animation: pf-pulse 1.1s ease 4s 1; }

@keyframes pf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(123, 184, 32, 0.5); }
  100% { box-shadow: 0 0 0 14px rgba(123, 184, 32, 0); }
}

.btn-ghost {
  height: 56px;
  border: 2px solid var(--green-900);
  background: transparent;
  color: var(--green-900);
}

.btn-ghost:hover { background: var(--lime-100); }

.btn-soon {
  height: 40px;
  border: 1px dashed var(--border);
  background: #f7f8f5;
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-block { width: 100%; }
.btn-label-short { display: none; }

.btn-sign.is-loading { color: transparent; position: relative; }
.btn-sign.is-loading .icon-paw { opacity: 0; }
.btn-sign.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cta-text);
  border-right-color: transparent;
  border-radius: 50%;
  animation: pf-spin 0.7s linear infinite;
}

@keyframes pf-spin { to { transform: rotate(360deg); } }

.icon { width: 24px; height: 24px; display: block; flex: none; }
.icon-paw { width: 18px; height: 22px; display: block; flex: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--lime-100);
  color: var(--green-900);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-wait {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge-row, .chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.badge-row::-webkit-scrollbar,
.chips::-webkit-scrollbar { display: none; }

.chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--green-900);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  white-space: nowrap;
}

.chip[aria-selected="true"] {
  background: var(--green-900);
  border-color: var(--green-900);
  color: #fff;
}

.hero-card, .panel, .story, .shelter, .fact, .demand, .step, .faq-item, .rank {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card { display: none; padding: 20px; }
.card-title { font-size: 22px; margin-bottom: 14px; }

.hero-mobile-cta .sign-micro,
.cta-band .sign-micro,
.sign-form .sign-micro { text-align: center; }

.sign-micro { margin-top: 8px; color: var(--muted); font-size: 13px; }

.cta-band { margin-top: 28px; text-align: center; }
.cta-kicker {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--green-900);
}

.trust { padding: 22px 0 8px; }
.trust-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-line { min-height: 1.6em; transition: opacity 0.18s ease; }
.feed-line.is-out { opacity: 0; }
.feed-line .badge { margin-left: 6px; vertical-align: 1px; }

.facts, .stories, .shelters, .demands, .steps { display: grid; gap: 16px; }

.fact, .demand, .step { padding: 18px; }
.fact-value { display: block; font-size: 32px; line-height: 1.1; margin-bottom: 8px; }
.fact-source { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }

.demand-icon, .step-no {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--lime-100);
  color: var(--green-900);
  font-family: var(--font-display);
  font-weight: 800;
}

.demand p, .step p, .story p, .shelter p { margin-top: 8px; color: var(--text); }

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lime-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.story, .shelter { overflow: hidden; }
.story-body, .shelter-body { padding: 16px; }
.card-media .badge { position: absolute; top: 12px; left: 12px; }

.quiz-teaser {
  padding: 24px;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(234, 244, 211, 0.9), #fff 55%),
    var(--surface);
  border: 1px solid var(--border);
}

.quiz-teaser h2 { margin-bottom: 8px; }
.quiz-teaser .btn-ghost { margin-top: 16px; }

.ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rank { padding: 12px 14px; }
.rank.is-you { background: var(--lime-100); }
.rank-row { display: flex; align-items: center; gap: 8px; }
.rank-pos {
  width: 28px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--green-900);
}
.rank-name { font-weight: 700; }
.rank-count { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; }

.faq-item { padding: 0 16px; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--green-900); border-bottom: 2px solid var(--green-900); transform: rotate(45deg); flex: none; }
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
.faq-item .faq-a { padding-bottom: 16px; color: var(--text); }

.final {
  background: var(--green-900);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.final h2 { color: #fff; max-width: 740px; margin: 0 auto 12px; }
.final .count-num, .final .count-label, .final .meter-note, .final .sign-micro, .final .cta-kicker { color: #eaf4d3; }
.final .meter { background: rgba(255, 255, 255, 0.2); max-width: 460px; margin-inline: auto; }
.final .cta-band { margin-top: 22px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label, .check { font-weight: 600; font-size: 14px; }
.field input {
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  font-size: 16px;
}
.field input:focus { border-color: var(--green-900); outline: none; }
.field.has-error input { border-color: var(--error); }
.field-error { color: var(--error); font-size: 13px; font-weight: 600; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0;
  font-weight: 500;
}
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green-900); flex: none; }
.check a { white-space: nowrap; }
.form-alert {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--lime-100);
  color: var(--green-900);
  font-weight: 600;
}

.verify {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  background: #fafbf8;
}
.verify-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
}
.verify-title { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.verify p { color: var(--muted); font-size: 13px; }
.verify .btn-soon { grid-column: 1 / -1; }
.verify-tip {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--green-900);
  font-size: 13px;
  font-weight: 700;
}

.sheet[hidden], .modal[hidden], .quiz-layer[hidden] { display: none; }

.sheet-backdrop, .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 8, 0.46);
  z-index: 80;
}

.sheet-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 81;
  height: min(85vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.28s ease;
}
.sheet.is-open .sheet-panel { transform: translateY(0); }
.sheet-handle {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  margin: 6px auto 10px;
  touch-action: none;
}
.sheet-head, .modal-head, .quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--green-900);
  display: grid;
  place-items: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 84;
  display: grid;
  place-items: end center;
  padding: 16px;
}
.modal-backdrop { z-index: 84; }
.modal-card {
  position: relative;
  z-index: 85;
  width: min(520px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.thanks-check {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime-100);
  color: var(--green-900);
  margin-bottom: 10px;
}
.ref-box {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.ref-box input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
}
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.share-row .btn-ghost { height: 44px; font-size: 14px; }

.quiz-layer {
  position: fixed;
  inset: 0;
  z-index: 86;
  background: #fff;
  overflow: auto;
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
}
.quiz-inner { width: min(720px, 100%); margin: 0 auto; }
.quiz-result .result-photo {
  width: min(280px, 72vw);
  height: min(280px, 36vh);
  object-fit: cover;
  border-radius: 16px;
}
.quiz-progress { height: 8px; background: var(--lime-100); border-radius: 999px; overflow: hidden; margin: 8px 0 18px; }
.quiz-progress > span { display: block; height: 100%; background: var(--lime-500); }
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-tile {
  min-height: 120px;
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.quiz-tile:hover, .quiz-tile.is-selected { border-color: var(--green-900); background: var(--lime-100); }
.quiz-result img.result-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}
.quiz-back { background: none; border: 0; color: var(--green-900); font-weight: 700; padding: 8px 0; }

.sticky-sign {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-sign.is-on { transform: translateY(0); }
.sticky-sign .count-num { font-size: 22px; }
.sticky-sign .count-label { font-size: 12px; }
.sticky-sign .btn-sign { flex: 1; height: 48px; white-space: nowrap; }
.sticky-sign .btn-label { display: none; }
.sticky-sign .btn-label-short { display: inline; }
.sticky-meta { min-width: 92px; }

.proto-pill {
  margin-right: auto;
  background: var(--green-900);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.proto-short { display: none; }

.ref-banner {
  background: var(--lime-100);
  color: var(--green-900);
  text-align: center;
  padding: 8px 16px;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--green-900);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
body.has-sticky .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

.callout {
  background: var(--lime-100);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0 18px;
}

.preview-card { width: min(280px, 100%); border-radius: 12px; margin-top: 12px; }

@media (min-width: 700px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .stories, .shelters { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .demands, .steps { grid-template-columns: repeat(3, 1fr); }
  .modal { place-items: center; }
  .cta-band .btn-sign { min-width: 280px; }
}
@media (max-width: 1023px) {
  .hero { padding-top: 12px; padding-bottom: 8px; }
  .hero-photo { aspect-ratio: 1 / 1; height: auto; }
  .hero-copy .fine-print { display: none; }
  .count-block { margin-top: 12px; }
  .lead { margin-top: 8px; }
}
@media (min-width: 1024px) {
  .hero-card { display: block; }
  .stories { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .sticky-sign { display: none; }
}
@media (min-width: 1100px) {
  .shelters { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .cta-band .btn-sign, .hero-mobile-cta .btn-sign { width: 100%; }
  .proto-full { display: none; }
  .proto-short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-sign.pulse { animation: none; }
  .btn-sign.is-loading::after { animation: none; }
}
