:root {
  color-scheme: light;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: #f4f6f8;
  color: #1c252e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-image: radial-gradient(circle at top left, rgba(78,160,127,0.15), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(245,159,0,0.12), transparent 40%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e4e9ee;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #2e8462;
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(28,37,46,0.18);
}

.nav {
  display: flex;
  gap: 8px;
  font-size: 14px;
  flex-wrap: wrap;
}

.nav button {
  border: none;
  background: #f1f4f7;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.nav button.active {
  background: #1c252e;
  color: white;
}

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .grid.main {
    grid-template-columns: 1.1fr 1.6fr;
  }
}

.card {
  background: white;
  border: 1px solid #e4e9ee;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 14px 30px rgba(28,37,46,0.08);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6f3;
  color: #1b5540;
  font-size: 12px;
  font-weight: 600;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: #4c5e70;
}

input, select, textarea {
  border: 1px solid #c8d3dd;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: #2e8462;
  box-shadow: 0 0 0 3px rgba(46,132,98,0.15);
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.row > * {
  flex: 1;
}

.tabbar {
  display: grid;
  gap: 8px;
}

@media (min-width: 700px) {
  .tabbar {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}

.tabbar button {
  text-align: left;
  border: 1px solid #c8d3dd;
  border-radius: 18px;
  padding: 14px;
  background: white;
  cursor: pointer;
  font-weight: 600;
}

.tabbar button.active {
  background: #2e8462;
  color: white;
  border-color: #2e8462;
}

.muted {
  color: #7a8da1;
  font-size: 12px;
}

.result {
  background: #f4f6f8;
  border-radius: 18px;
  padding: 16px;
}

.result h3 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a8da1;
}

.result .value {
  font-size: 24px;
  font-weight: 700;
  word-break: break-word;
}

.small {
  font-size: 12px;
  color: #5f7488;
}

.button {
  border: none;
  background: #1c252e;
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}

.button.secondary {
  background: white;
  color: #1c252e;
  border: 1px solid #c8d3dd;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.alert {
  background: #fff6e6;
  color: #9a5b00;
  border: 1px solid #f5d28b;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
}

.alert.hidden {
  display: none !important;
}

.listbox {
  position: relative;
}

.listbox ul {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e4e9ee;
  border-radius: 16px;
  max-height: 240px;
  overflow: auto;
  box-shadow: 0 10px 20px rgba(28,37,46,0.1);
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 6px;
}

.listbox li {
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.listbox li:hover {
  background: #eef6f3;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer {
  border-top: 1px solid #e4e9ee;
  background: rgba(255,255,255,0.8);
  padding: 18px 20px;
  font-size: 12px;
  color: #7a8da1;
}

@media (max-width: 720px) {
  .container {
    padding: 20px 14px 40px;
  }

  .header {
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav button {
    padding: 6px 12px;
    font-size: 12px;
  }

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

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

  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .row > * {
    width: 100%;
  }

  .card {
    padding: 16px;
    border-radius: 18px;
  }

  .result .value {
    font-size: 20px;
  }
}

.section {
  margin-top: 28px;
}

.section h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.section p {
  font-size: 14px;
  color: #4c5e70;
  line-height: 1.6;
}

.section .cards {
  display: grid;
  gap: 14px;
}

@media (min-width: 800px) {
  .section .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section .card {
  box-shadow: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e4e9ee;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #5f7488;
  background: #ffffff;
}

.faq-item {
  border-top: 1px solid #e4e9ee;
  padding-top: 12px;
  margin-top: 12px;
}

.hidden {
  display: none;
}
