:root {
  color-scheme: light;
  --bg: #f7fbf6;
  --surface: #ffffff;
  --surface-soft: #eef6eb;
  --ink: #13241b;
  --muted: #5d6f64;
  --line: #dce9d8;
  --green: #245f3c;
  --green-dark: #173d29;
  --green-soft: #dff0d7;
  --accent: #91c84c;
  --shadow: 0 20px 55px rgba(28, 69, 44, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(145, 200, 76, 0.18), transparent 32rem),
    linear-gradient(180deg, #f7fbf6 0%, #eef6eb 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(28, 69, 44, 0.06);
}

.language-switcher a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.language-switcher a.active {
  color: #ffffff;
  background: var(--green);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 54px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 1.06rem;
  line-height: 1.25;
}

.subtitle {
  margin: 20px 0 14px;
  color: var(--green);
  font-size: clamp(1.28rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
}

.intro {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 14px 30px rgba(36, 95, 60, 0.22);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.text-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-panel {
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 34px -16px -22px 30px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(145, 200, 76, 0.25), rgba(36, 95, 60, 0.12));
  z-index: -1;
}

.device-card {
  min-height: 390px;
  padding: 26px;
  border: 1px solid rgba(220, 233, 216, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 235, 0.92)),
    var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.device-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
}

.device-topline strong {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
}

.readout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.readout-grid div,
.status-tile {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.status-tile {
  appearance: none;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.status-tile:hover,
.status-tile:focus-visible,
.status-tile.active {
  border-color: rgba(36, 95, 60, 0.46);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(36, 95, 60, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.readout-grid span,
.status-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.readout-grid strong,
.status-tile strong {
  display: block;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 1.62rem;
  line-height: 1.1;
}

.status-explanation {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(36, 95, 60, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.status-explanation h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.status-explanation p {
  margin: 0;
  color: var(--muted);
}

.status-explanation p span {
  display: block;
}

.status-list {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.status-list:empty {
  display: none;
}

.status-list li {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 74px;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(28, 69, 44, 0.07);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.cta-band {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 56px;
  padding: 32px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.cta-band .eyebrow,
.cta-band h2,
.cta-band p {
  color: #ffffff;
}

.cta-band p {
  margin: 12px 0 0;
  max-width: 68ch;
}

.cta-band .button {
  background: #ffffff;
  color: var(--green-dark);
  box-shadow: none;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

.text-page {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.text-page h1 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.text-page p {
  color: var(--muted);
  font-size: 1.04rem;
}

.survey-hero {
  padding-bottom: 28px;
}

.survey-hero h1 {
  margin-bottom: 18px;
}

.survey-section {
  padding-top: 0;
}

.survey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.survey-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.survey-card h2 {
  font-size: 1.32rem;
}

.survey-card p {
  margin: 0;
  color: var(--muted);
}

.survey-card .button {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switcher {
    width: 100%;
    overflow-x: auto;
  }

  .language-switcher a {
    flex: 1 0 auto;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .device-card {
    min-height: 320px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .cta-band,
  .site-footer,
  .text-page {
    width: min(100% - 24px, 1120px);
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-grid,
  .readout-grid,
  .survey-grid,
  .status-list {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 36px;
    height: 36px;
  }
}
