/* Landing-specific tokens — forest palette */
:root {
  --eco-bg-top: #060d08;
  --eco-bg-bottom: #030704;
  --eco-panel: rgba(10, 22, 16, 0.92);
  --eco-panel-soft: rgba(14, 30, 22, 0.78);
  --eco-border: rgba(120, 170, 140, 0.22);
  --eco-text: #eaf5ee;
  --eco-text-soft: rgba(200, 230, 210, 0.78);
  --eco-blue: #0ea5e9;
  --eco-green: #34d399;
}

[data-theme="light"] {
  --eco-bg-top: #e9e5dc;
  --eco-bg-bottom: #dfdad0;
  --eco-panel: rgba(250, 248, 244, 0.92);
  --eco-panel-soft: rgba(244, 241, 235, 0.82);
  --eco-border: rgba(100, 85, 65, 0.20);
  --eco-text: #2c2418;
  --eco-text-soft: rgba(80, 65, 45, 0.72);
  --eco-blue: #0284c7;
  --eco-green: #059669;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background-color: var(--eco-bg-bottom);
  background-image:
    radial-gradient(1000px 650px at 12% 12%, rgba(16, 80, 50, 0.40) 0%, transparent 60%),
    radial-gradient(1000px 800px at 88% 0%, rgba(52, 211, 153, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, var(--eco-bg-top) 0%, var(--eco-bg-bottom) 100%);
}

.eco-body {
  color: var(--eco-text);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  background: transparent;
  overflow-x: hidden;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.eco-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.4rem;
}

.eco-header-legal {
  position: static;
}

.eco-logo {
  text-decoration: none;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.eco-logo-blue {
  color: var(--eco-blue);
  text-shadow: 0 0 22px rgba(14, 165, 233, 0.50);
}

.eco-logo-green {
  color: var(--eco-green);
  text-shadow: 0 0 22px rgba(52, 211, 153, 0.40);
}

.eco-login-link {
  text-decoration: none;
  color: var(--eco-text);
  border: 1px solid var(--eco-border);
  background: rgba(8, 20, 14, 0.68);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.eco-login-link:hover {
  transform: translateY(-1px);
  background: rgba(14, 35, 24, 0.82);
}

.eco-main {
  position: relative;
  z-index: 10;
}

.eco-hero {
  min-height: 100vh;
  padding: 8.4rem 1rem 4rem;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-content {
  width: min(920px, 100%);
  transition: transform 0.35s ease-out;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 9.5vw, 6.2rem);
  line-height: 0.95;
}

.hero-content p {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(1.08rem, 3.2vw, 1.65rem);
  color: var(--eco-text-soft);
}

.accent-green {
  color: var(--eco-green);
  font-weight: 700;
}

.eco-cta {
  display: inline-block;
  margin-top: 2rem;
  border: 0;
  border-radius: 14px;
  padding: 0.95rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f5fcff;
  background: linear-gradient(120deg, #10b981 0%, #059669 100%);
  box-shadow: 0 12px 38px rgba(16, 185, 129, 0.3);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.eco-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 44px rgba(16, 185, 129, 0.30);
}

.hero-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hero-links a {
  color: #7dd8b8;
  text-decoration: none;
  font-size: 0.96rem;
}

.hero-links a:hover {
  text-decoration: underline;
}

.eco-legal-body {
  color: var(--eco-text);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #080d15 0%, #050910 100%);
}

.legal-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.legal-card {
  border: 1px solid var(--eco-border);
  background: var(--eco-panel);
  border-radius: 16px;
  padding: 1.2rem;
}

.legal-card h1 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.legal-card h2 {
  margin-bottom: 0.4rem;
  color: var(--eco-green);
  font-size: 1.2rem;
}

.legal-card section {
  margin-bottom: 1rem;
}

.legal-card p,
.legal-card li {
  color: var(--eco-text-soft);
  line-height: 1.55;
}

.legal-muted {
  margin-top: -0.2rem;
}

.legal-card ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.legal-back {
  margin-top: 1.2rem;
}

.legal-back a {
  color: #7dd8b8;
}

/* ── Flowchart section ────────────────────────────────────── */

.eco-flow {
  position: relative;
  z-index: 10;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.flow-heading {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin: 0 0 3rem;
  font-weight: 800;
  color: var(--eco-text);
}

.flow-chart {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}

.flow-step {
  flex: 1 1 0%;
  min-width: 0;
  padding: 0 0.8rem;
}

.flow-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--eco-border);
  background: var(--eco-panel);
  color: var(--eco-green);
}

.flow-icon--blue {
  color: var(--eco-blue);
}

.flow-icon--green {
  color: var(--eco-green);
}

.flow-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--eco-text);
}

.flow-step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--eco-text-soft);
  line-height: 1.5;
}

.flow-connector {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-top: 1.2rem;
  color: rgba(132, 151, 188, 0.5);
}

.flow-connector svg {
  display: block;
}

/* ── Footer ──────────────────────────────────────────────── */

.eco-footer {
  position: relative;
  z-index: 10;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--eco-border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: #7dd8b8;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.pulse {
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.66;
  }
}

/* ── Login page ────────────────────────────────────────────── */

.eco-hero-login {
  min-height: 100vh;
  padding: 6rem 1rem 3rem;
}

.eco-login-container {
  width: min(440px, 100%);
  border: 1px solid var(--eco-border);
  background: var(--eco-panel);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  backdrop-filter: blur(12px);
}

.eco-login-heading {
  margin: 0 0 0.3rem;
  font-size: 1.8rem;
  text-align: center;
}

.eco-login-subtitle {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--eco-text-soft);
}

.eco-login-form {
  display: grid;
  gap: 1rem;
}

.eco-login-field {
  display: grid;
  gap: 0.35rem;
}

.eco-login-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--eco-text-soft);
}

.eco-login-field input {
  width: 100%;
  border: 1px solid var(--eco-border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  background: rgba(8, 20, 14, 0.68);
  color: var(--eco-text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eco-login-field input:focus {
  outline: none;
  border-color: var(--eco-blue);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.eco-login-field input::placeholder {
  color: rgba(230, 238, 255, 0.35);
}

.eco-login-submit {
  width: 100%;
  margin-top: 0.3rem;
  border: 0;
  font-family: inherit;
}

.eco-login-errors {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 110, 110, 0.3);
  border-radius: 10px;
  background: rgba(60, 20, 20, 0.45);
  color: #ff9e9e;
  font-size: 0.88rem;
}

.eco-login-errors li + li {
  margin-top: 0.3rem;
}

.eco-login-messages {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.eco-login-messages li {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--eco-border);
  background: rgba(8, 20, 14, 0.68);
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.eco-login-messages li.success {
  border-color: rgba(16, 185, 129, 0.35);
  color: #8ce8c2;
}

.eco-login-messages li.error {
  border-color: rgba(255, 110, 110, 0.3);
  color: #ff9e9e;
}

@media (max-width: 640px) {
  .eco-header {
    padding: 0.85rem 0.9rem;
  }

  .eco-logo {
    font-size: 1.4rem;
  }

  .eco-login-link {
    font-size: 0.88rem;
    padding: 0.48rem 0.75rem;
  }

  .eco-hero {
    padding-top: 7rem;
  }

  .flow-chart {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .flow-connector {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .eco-hero-login {
    padding-top: 5rem;
  }

  .eco-login-container {
    padding: 1.6rem 1.2rem;
  }
}

/* ── Light theme overrides ── */

[data-theme="light"] html {
  background-image:
    radial-gradient(1000px 650px at 12% 12%, rgba(120, 100, 60, 0.06) 0%, transparent 60%),
    radial-gradient(1000px 800px at 88% 0%, rgba(5, 150, 105, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--eco-bg-top) 0%, var(--eco-bg-bottom) 100%);
}

[data-theme="light"] .eco-logo-blue {
  text-shadow: none;
}

[data-theme="light"] .eco-logo-green {
  text-shadow: none;
}

[data-theme="light"] .eco-login-link {
  background: rgba(250, 248, 244, 0.7);
  border-color: rgba(100, 85, 65, 0.20);
  color: var(--eco-text);
}

[data-theme="light"] .eco-login-link:hover {
  background: rgba(250, 248, 244, 0.9);
}

/* ── Theme toggle (landing/login pages) ── */
.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--eco-border);
  border-radius: 999px;
  background: rgba(8, 20, 14, 0.68);
  color: var(--eco-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
  font-size: 1.1rem;
  line-height: 1;
}

.theme-toggle::before {
  content: "\2600\FE0F";
}

.theme-toggle:hover {
  background: rgba(14, 35, 24, 0.82);
}

[data-theme="light"] .theme-toggle {
  background: rgba(250, 248, 244, 0.7);
  border-color: rgba(100, 85, 65, 0.20);
  color: var(--eco-text);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(250, 248, 244, 0.9);
}

[data-theme="light"] .theme-toggle::before {
  content: "\1F319";
}

/* ── Contact form ── */

.eco-contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.eco-contact-form textarea {
  width: 100%;
  border: 1px solid var(--eco-border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: rgba(8, 20, 14, 0.68);
  color: var(--eco-text);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  min-height: 140px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eco-contact-form textarea:focus,
.eco-contact-form input[type="text"]:focus,
.eco-contact-form input[type="email"]:focus {
  outline: none;
  border-color: var(--eco-blue);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.eco-contact-form input[type="text"],
.eco-contact-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--eco-border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  background: rgba(8, 20, 14, 0.68);
  color: var(--eco-text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eco-contact-form textarea::placeholder,
.eco-contact-form input::placeholder {
  color: rgba(230, 238, 255, 0.35);
}

.contact-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--eco-text-soft);
  cursor: pointer;
}

.contact-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--eco-green);
}

.contact-consent a {
  color: var(--eco-green);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.eco-contact-submit {
  width: 100%;
  margin-top: 0.4rem;
  cursor: pointer;
  font-family: inherit;
}

.contact-success {
  margin: 1.2rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
  color: #b6f0d4;
  border-radius: 12px;
  font-size: 0.96rem;
  line-height: 1.5;
}

.contact-success strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #d4f7e4;
  font-size: 1.02rem;
}

[data-theme="light"] .contact-success {
  background: rgba(5, 150, 105, 0.10);
  color: #035e44;
}

[data-theme="light"] .contact-success strong {
  color: #034432;
}

[data-theme="light"] .eco-contact-form textarea,
[data-theme="light"] .eco-contact-form input[type="text"],
[data-theme="light"] .eco-contact-form input[type="email"] {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(100, 85, 65, 0.22);
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 20, 14, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(120, 170, 140, 0.22);
  padding: 1rem 1.5rem;
  color: #eaf5ee;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cookie-banner-inner p {
  margin: 0;
  flex: 1;
  min-width: 280px;
}

.cookie-banner-inner a {
  color: #34d399;
  text-decoration: underline;
}

.cookie-banner-accept {
  padding: 0.5rem 1.4rem;
  border: none;
  border-radius: 8px;
  background: #10b981;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.cookie-banner-accept:hover {
  background: #059669;
}

[data-theme="light"] .cookie-banner {
  background: rgba(255, 255, 255, 0.97);
  border-top-color: rgba(100, 85, 65, 0.18);
  color: #2c2418;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .cookie-banner-inner a {
  color: #059669;
}

[data-theme="light"] .cookie-banner-accept {
  background: #059669;
}

[data-theme="light"] .cookie-banner-accept:hover {
  background: #047857;
}
