:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Noto Sans KR",
    sans-serif;
  color: #17211b;
  background: #f4f7f4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #14532d;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
header {
  min-height: 68px;
  padding: 12px max(22px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e1e9e3;
  color: #627068;
  font-size: 13px;
}
.brand {
  font-weight: 900;
  color: #14532d;
  text-decoration: none;
  font-size: 20px;
}
nav {
  display: flex;
  gap: 18px;
}
nav a {
  text-decoration: none;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 48px 22px;
}
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  color: #16803b;
}
.hero h1,
.top h1 {
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  margin: 10px 0 20px;
}
.hero > p:not(.eyebrow) {
  font-size: 18px;
  color: #59685f;
}
.hero form {
  margin-top: 34px;
  background: #fff;
  padding: 22px;
  border: 1px solid #dbe5de;
  border-radius: 20px;
  box-shadow: 0 18px 50px #153c2012;
}
.hero label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}
.hero form div {
  display: flex;
  align-items: center;
  gap: 8px;
}
input,
textarea {
  width: 100%;
  border: 1px solid #cbd8ce;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: #17211b;
}
.hero input {
  min-width: 0;
  flex: 1;
}
.hero button,
.top button,
.settings-grid button {
  border: 0;
  background: #14532d;
  color: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 800;
}
.top {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.top h1 {
  font-size: 40px;
}
.status {
  margin: 0 0 18px;
  color: #16803b;
}
.status.error {
  color: #b91c1c;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cards article,
.panel {
  background: #fff;
  border: 1px solid #dbe5de;
  border-radius: 18px;
  padding: 22px;
}
.cards span {
  font-size: 13px;
  color: #66746b;
}
.cards strong {
  display: block;
  font-size: 38px;
  margin-top: 12px;
}
.cards .danger strong {
  color: #dc2626;
}
.panel {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel h2 {
  margin: 6px 0;
}
.panel p {
  color: #66746b;
}
.panel.column {
  display: block;
}
.switch {
  display: flex;
  align-items: center;
  gap: 10px;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
}
.switch span {
  width: 48px;
  height: 28px;
  background: #cbd5cf;
  border-radius: 99px;
  padding: 3px;
}
.switch span:before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:focus-visible + span {
  outline: 3px solid #86efac;
}
.switch input:checked + span {
  background: #16803b;
}
.switch input:checked + span:before {
  transform: translateX(20px);
}
.funnel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 18px 0;
}
.funnel div {
  padding: 14px;
  background: #f4f7f4;
  border-radius: 12px;
}
.funnel span {
  display: block;
  font-size: 12px;
}
.funnel b {
  font-size: 25px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.settings-grid label {
  font-size: 13px;
  font-weight: 800;
}
.settings-grid input,
.settings-grid textarea {
  display: block;
  margin-top: 8px;
  font-weight: 400;
}
.settings-grid .wide {
  grid-column: 1/-1;
}
.settings-grid button {
  justify-self: start;
}
.danger-zone {
  border-color: #fecaca;
}
.danger-button {
  border: 1px solid #dc2626;
  background: #fff;
  color: #b91c1c;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 800;
}
#toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 28px;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 20px);
  background: #17211b;
  color: #fff;
  padding: 12px 18px;
  border-radius: 99px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.legal {
  max-width: 760px;
}
.legal h1 {
  font-size: 44px;
  letter-spacing: -0.04em;
}
.legal h2 {
  margin-top: 34px;
}
.legal p,
.legal li {
  line-height: 1.75;
  color: #445149;
}
@media (max-width: 720px) {
  header {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  nav {
    flex-wrap: wrap;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .top,
  .panel {
    align-items: flex-start;
    gap: 24px;
    flex-direction: column;
  }
  .funnel,
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero form div {
    flex-wrap: wrap;
  }
  .hero button {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .cards,
  .funnel,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid .wide {
    grid-column: auto;
  }
  .top h1 {
    font-size: 34px;
  }
}
