:root {
  color-scheme: light;
  --ink: #103d2d;
  --muted: #567064;
  --line: #d9e7e0;
  --line-strong: #b7d7ca;
  --paper: #ffffff;
  --mist: #f3faf7;
  --foam: #e1f4ed;
  --green: #12b981;
  --green-dark: #047857;
  --teal: #0797a3;
  --sky: #d9f0ff;
  --amber: #f3b34d;
  --danger: #b42318;
  --shadow: 0 20px 60px #006d4442;
  --radius: 10px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  background: radial-gradient(circle,rgba(197, 227, 205, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(16, 61, 45, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 61, 45, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 0;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(18, 185, 129, 0.22);
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.7;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topnav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
	text-decoration: none;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--ink);
  outline: none;
}

.campaign-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.72fr);
  gap: 34px;
  align-items: stretch;
  padding: 42px 0 28px;
}

.campaign-copy {
  display: flex;
  min-height: 480px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px) 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: 65px;
	color: #005232;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(20px, 30px, 40px);
  line-height: 1.06;
  text-transform: capitalize;
  letter-spacing: 0;
}

.campaign-text {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions,
.form-actions,
.share-actions,
.leaderboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 400;
	text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: #fff;
  background:#005232;
  box-shadow: 0 14px 30px rgba(18, 185, 129, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  box-shadow: 0 18px 36px rgba(18, 185, 129, 0.31);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.ghost {
  color: var(--green-dark);
  background: transparent;
  border-color: transparent;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.live-wall {
  display: flex;
  align-items: center;
}

.wall-screen {
  overflow: hidden;
  width: 100%;
  min-height: 450px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
}

.wall-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.wall-header strong {
  color: var(--ink);
}

.road-visual {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius);
  
}

.road-visual::before,
.road-visual::after {
  position: absolute;
  content: "";
}

.road-visual::before {
  right: -30px;
  bottom: 116px;
  width: 180px;
  height: 180px;
  
}

.road-visual::after {
  left: 0;
  right: 0;
  bottom: 78px;
  height: 10px;
  opacity: 0.82;
}

.sun {
  position: absolute;
  top: 28px;
  right: 34px;
  width: 54px;
  height: 54px;
  background: var(--amber);
  border-radius: 999px;
}

.road-line {
  position: absolute;
  left: 18px;
  bottom: 42px;
  width: 72%;
  height: 5px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  border-radius: 999px;
}

.car-dot {
  position: absolute;
  bottom: 57px;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 6px solid var(--green);
  border-radius: 999px;
}

.dot-one {
  left: 18%;
}

.dot-two {
  left: 42%;
  border-color: var(--teal);
}

.dot-three {
  left: 70%;
  border-color: var(--amber);
}

.wall-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.wall-stats div,
.impact-cards div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #F4F4F1;
}

.wall-stats small,
.impact-cards small {
  display: block;
  color: var(--muted);
  font-size: 13px;
    padding-bottom: 5px;
  font-weight: 400;
  text-transform: uppercase;
}

.wall-stats strong,
.impact-cards strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.35rem;
  line-height: 1.1;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 22px;
  align-items: start;
  padding: 22px 0;
}

.entry-form,
.preview-panel,
.leaderboard-section {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(13, 73, 51, 0.08);
}

.section-heading {
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}

input:focus,
select:focus {
  border-color: var(--green);
  outline: 3px solid rgba(18, 185, 129, 0.16);
}

input:user-invalid,
select:user-invalid {
  border-color: var(--danger);
}

.upload-zone {
  position: relative;
  display: grid;
  min-height: 132px;
  margin: 18px 0 12px;
  place-items: center;
  padding: 20px;
  text-align: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--mist);
}

.upload-zone.is-ready {
  border-color: var(--green);
  background: #eefbf6;
}

.upload-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}

.upload-zone svg {
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.upload-zone strong,
.upload-zone span {
  display: block;
}

.upload-zone span {
  color: var(--muted);
  font-size: 0.9rem;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 18px;
  color: var(--muted);
}

.consent-row input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.consent-row span {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-message.is-error {
  color: var(--danger);
}

.form-message.is-success {
  color: var(--green-dark);
}

.impact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.canvas-shell {
  overflow: hidden;

  background: #fff;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
}

.share-actions {
  margin-top: 14px;
}

.leaderboard-section {
  margin: 22px 0 56px;
}

.leaderboard-toolbar {
  justify-content: space-between;
  margin-bottom: 16px;
}

.leaderboard-toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.leaderboard-list {
  display: grid;
  gap: 10px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #fff, var(--mist));
}

.leaderboard-rank {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--green-dark);
  border-radius: var(--radius);
  font-weight: 950;
}

.leaderboard-person {
  min-width: 0;
}

.leaderboard-person strong,
.leaderboard-person span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-person span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.leaderboard-metric {
  min-width: 110px;
  text-align: right;
}

.leaderboard-metric small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.leaderboard-metric strong {
  font-size: 1.05rem;
}

.badge-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--green-dark);
  background: var(--foam);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.empty-state {
  display: grid;
  gap: 4px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--mist);
}

.empty-state strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  .campaign-panel,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .campaign-copy {
    min-height: 0;
    padding-top: 28px;
  }

  .wall-screen {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 22px, 1180px);
  }

  .topbar {
    position: static;
    /*align-items: flex-start;*/
    flex-direction: column;
    min-height: auto;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
  }

  .campaign-panel {
    padding-top: 8px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.7rem);
  }

  .form-grid,
  .impact-cards,
  .wall-stats {
    grid-template-columns: 1fr;
  }

  .leaderboard-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .leaderboard-metric {
    text-align: left;
  }

  .badge-pill {
    justify-self: start;
    margin-left: 78px;
  }

  .button {
    width: 100%;
  }

  .hero-actions .button,
  .share-actions .button,
  .leaderboard-toolbar .button {
    width: auto;
  }
}

@media (max-width: 460px) {
  .hero-actions .button,
  .share-actions .button,
  .leaderboard-toolbar .button {
    width: 100%;
  }

  .entry-form,
  .preview-panel,
  .leaderboard-section {
    padding: 16px;
  }
}
