
:root {
  --lifening-blue: #83D1DF;
  --lifening-blue-dark: #42AFC2;
  --lifening-light-blue: #C4E6EA;
  --lifening-light-green: #EEF4C9;
  --bg: #F7FAFB;
  --card: #FFFFFF;
  --text: #2F3437;
  --muted: #7B8794;
  --line: #E6EEF0;
  --danger: #EF4444;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SamsungOne", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(131, 209, 223, 0.20), transparent 30%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg) 46%, #F2F7F8 100%);
  color: var(--text);
  line-height: 1.55;
}

.wrap {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hero {
  background: linear-gradient(135deg, rgba(131, 209, 223, 0.95), rgba(131, 209, 223, 0.78));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  min-height: 330px;
  padding: 34px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -110px;
  bottom: -120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.23);
}

.logo-card {
  display: inline-flex;
  align-items: center;
  padding: 13px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 14px 28px rgba(31,41,51,0.09);
  position: relative;
  z-index: 2;
}

.logo-card img {
  height: 34px;
  width: auto;
  display: block;
}

.hero-copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  z-index: 2;
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.hero p {
  margin: 16px 0 0;
  max-width: 720px;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
}

.card, .product-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(230, 238, 240, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-top: 18px;
}

.product-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F7FCFD 100%);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

h3 {
  margin: 22px 0 12px;
  font-size: 15px;
  color: var(--lifening-blue-dark);
  letter-spacing: -0.02em;
}

.helper {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--lifening-light-blue);
  color: #35636B;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.overview-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: #FBFEFF;
}

.overview-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.overview-item strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.scale {
  background: linear-gradient(135deg, var(--lifening-light-green), #FFFFFF);
  border: 1px solid #EDF2C3;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

label.field-label {
  display: block;
  margin: 17px 0 8px;
  font-weight: 850;
  font-size: 14px;
}

input[type="text"], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #FAFCFD;
  padding: 15px 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: 0.18s;
}

input[type="text"]:focus, textarea:focus, select:focus {
  background: white;
  border-color: var(--lifening-blue-dark);
  box-shadow: 0 0 0 4px rgba(131, 209, 223, 0.20);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.choice-grid {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #FBFEFF;
  padding: 13px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--lifening-blue-dark);
}

.rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.question {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.question:first-of-type { border-top: 0; padding-top: 0; }

.q-title {
  font-size: 15px;
  font-weight: 850;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.rating {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rating input { display: none; }

.rating label {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FBFEFF;
  color: #637381;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: 0.16s;
}

.rating input:checked + label {
  color: white;
  background: var(--lifening-blue-dark);
  border-color: var(--lifening-blue-dark);
  box-shadow: 0 10px 20px rgba(66, 175, 194, 0.24);
}

.submit-row {
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(247,250,251,0) 0%, var(--bg) 32%);
  margin-top: -4px;
}

.primary-btn, .secondary-btn, .danger-btn {
  border: 0;
  border-radius: 999px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  transition: 0.18s;
}

.primary-btn {
  width: 100%;
  color: white;
  background: var(--lifening-blue-dark);
  box-shadow: 0 14px 28px rgba(66, 175, 194, 0.27);
}

.secondary-btn {
  color: #35636B;
  background: var(--lifening-light-blue);
}

.danger-btn {
  color: white;
  background: var(--danger);
}

.primary-btn:hover, .secondary-btn:hover, .danger-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.notice {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  margin: 10px 0 0;
}

.required { color: var(--lifening-blue-dark); font-weight: 900; }

.toast {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: #1F2933;
  color: white;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 50;
  font-size: 14px;
  font-weight: 800;
}

.toast.show { display: block; }

.view { display: none; }
.view.active { display: block; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.metric strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.result-table th, .result-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.result-table th {
  background: #F2F7F8;
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.bar-wrap { display: grid; gap: 10px; }

.bar-row {
  display: grid;
  grid-template-columns: 190px 1fr 50px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
}

.bar {
  height: 12px;
  background: #E8F2F4;
  border-radius: 999px;
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--lifening-blue-dark);
  border-radius: 999px;
}

.empty {
  color: var(--muted);
  background: #FBFEFF;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
  font-weight: 700;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-lock {
  display: grid;
  gap: 12px;
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .overview { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, 980px); padding-top: 14px; }
  .hero { min-height: 360px; padding: 24px; }
  .hero-copy { left: 24px; right: 24px; bottom: 24px; }
  .logo-card img { height: 28px; }
  .card, .product-card { padding: 20px; border-radius: 24px; }
  .rank-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .rating { gap: 6px; }
  .rating label { min-height: 42px; }
  .bar-row { grid-template-columns: 1fr; gap: 5px; }
  .result-table { font-size: 12px; }
  .result-table th, .result-table td { padding: 9px 7px; }
}
