:root {
  color-scheme: light;
  --bg: #f3f5f2;
  --surface: #ffffff;
  --text: #18211d;
  --muted: #63706a;
  --line: #d4ded8;
  --primary: #1f6f4a;
  --primary-dark: #155236;
  --accent: #b42318;
  --shadow: 0 18px 48px rgba(24, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(31, 111, 74, 0.08), transparent 36%),
    linear-gradient(315deg, rgba(180, 35, 24, 0.08), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
}

.home-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 40px) 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  min-height: 34vh;
  padding-bottom: clamp(24px, 4vw, 44px);
}

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

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.1rem, 6.4vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero-tiles {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 8px;
}

.hero-tiles img {
  width: clamp(44px, 6vw, 72px);
  height: auto;
  filter: drop-shadow(0 8px 10px rgba(24, 33, 29, 0.2));
}

.hero-tiles img:nth-child(2) {
  transform: translateY(-12px);
}

.hero-tiles img:nth-child(3) {
  transform: translateY(5px);
}

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

.mode-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 148px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.mode-card.active {
  border-color: rgba(31, 111, 74, 0.45);
}

.mode-card.active:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.mode-card.disabled {
  color: var(--muted);
  box-shadow: none;
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 72px;
  border: 1px solid #c7d2cc;
  border-radius: 8px;
  background: #fff;
}

.mode-icon img {
  width: 42px;
  height: auto;
}

.mode-text {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mode-title {
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 900;
  line-height: 1.15;
}

.mode-status {
  justify-self: start;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef5f1;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.disabled .mode-status {
  background: #eef0ef;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-tiles {
    justify-content: flex-start;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-shell {
    padding-inline: 12px;
  }

  .hero {
    min-height: 30vh;
    gap: 18px;
  }

  .mode-card {
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 118px;
    gap: 12px;
    padding: 16px;
  }

  .mode-icon {
    width: 50px;
    height: 62px;
  }

  .mode-icon img {
    width: 36px;
  }
}
