* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f0f1f5;
  --card: #ffffff;
  --soft: #f8f8fb;
  --text: #1a1a1a;
  --muted: #666666;
  --line: #e7e8ee;
  --accent: #7b5cf0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

/* 한글은 단어 중간에서 줄바꿈되지 않도록 합니다 */
h1,
h2,
h3,
.main-title,
.detail-header-title,
.section-title,
.section-title-home,
.stat-text,
.menu-card-title,
.result-title,
.quiz-question,
.check-title,
.faq-q {
  word-break: keep-all;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

.page-wrapper {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}

.highlight {
  color: var(--accent);
}

.main-header {
  padding: 56px 24px 28px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(123, 92, 240, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.main-title {
  font-size: 31px;
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: -1px;
}

.main-subtitle {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.main-subtitle strong {
  color: var(--text);
  font-weight: 700;
}

.menu-list {
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.interactive-section {
  margin: 0 20px 20px;
  padding: 20px 16px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 16px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title-home {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

.section-description {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.58;
}

.checker-form,
.poll-form,
.board-form,
.detail-check-form,
.detail-note-form {
  display: grid;
  gap: 12px;
}

.checker-item,
.poll-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  background: var(--soft);
  border-radius: 12px;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.checker-item input,
.poll-option input {
  flex-shrink: 0;
}

.result-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #f7f4ff;
  border: 1px solid rgba(123, 92, 240, 0.16);
}

.result-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.result-title {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
}

.result-copy {
  margin-top: 8px;
  font-size: 14px;
  color: #444;
  line-height: 1.65;
}

.result-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid rgba(123, 92, 240, 0.18);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.poll-result {
  margin-top: 16px;
}

.poll-bar-row + .poll-bar-row {
  margin-top: 12px;
}

.poll-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.poll-bar-header strong {
  font-size: 14px;
}

.poll-bar-header span {
  color: var(--muted);
}

.poll-bar-track {
  height: 10px;
  margin-top: 7px;
  background: #ece8ff;
  border-radius: 999px;
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7b5cf0, #9c85f5);
}

.board-grid {
  display: grid;
  gap: 12px;
}

.field-label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.field-label input,
.field-label select,
.field-label textarea {
  width: 100%;
  border: 1px solid #dddfea;
  border-radius: 12px;
  padding: 13px 12px;
  font-size: 14px;
  font-family: "Noto Sans KR", sans-serif;
  background: #fff;
}

.field-label textarea {
  resize: vertical;
}

.board-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f1f8ff;
  color: #235887;
  font-size: 13px;
  font-weight: 600;
}

.board-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.board-post {
  padding: 15px 14px;
  background: var(--soft);
  border-radius: 14px;
}

.board-post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-post-top strong {
  font-size: 14px;
}

.board-post-top span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.board-post-message {
  margin-top: 8px;
  font-size: 14px;
  color: #444;
  line-height: 1.62;
}

.board-post-date {
  margin-top: 10px;
  font-size: 12px;
  color: #7d7d7d;
}

.menu-card {
  background: var(--card);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.menu-card:hover,
.menu-card:focus {
  transform: scale(1.01);
  outline: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.menu-card-left {
  flex: 1;
}

.menu-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}

.arrow {
  font-weight: 400;
  color: #909090;
  margin-left: 3px;
}

.menu-card-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.48;
}

.menu-card-icon {
  font-size: 44px;
  line-height: 1;
  flex-shrink: 0;
}

.policy-strip {
  margin: 0 20px 18px;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.policy-strip-text {
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
}

.policy-links a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.main-footer {
  padding: 0 20px 36px;
}

.footer-service {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.detail-header {
  padding: 50px 24px 30px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.detail-header-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.8px;
  text-align: center;
}

.content-frame {
  background: #ffffff;
  border-radius: 32px 32px 0 0;
  margin: 0 12px;
  padding: 28px 20px 48px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.section-block + .section-block {
  margin-top: 30px;
}

.section-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.desc-box {
  background: var(--soft);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  padding: 18px 16px;
  margin-bottom: 16px;
}

.desc-box-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.desc-box-text {
  font-size: 14px;
  color: #333;
  line-height: 1.72;
}

.desc-box-text strong {
  color: var(--text);
}

.stat-text {
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  line-height: 1.42;
  letter-spacing: -0.5px;
  margin: 22px 0 18px;
}

.info-box {
  background: var(--soft);
  border-radius: 12px;
  padding: 18px 16px;
}

.info-box + .info-box {
  margin-top: 16px;
}

.info-box-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.info-row + .info-row {
  margin-top: 14px;
}

.info-row-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.info-row-sub {
  font-size: 14px;
  color: #444;
  line-height: 1.58;
}

.action-panel {
  margin-top: 28px;
}

.action-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.cta-btn,
.outline-btn {
  width: 100%;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Noto Sans KR", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  letter-spacing: -0.3px;
}

.cta-btn {
  background: var(--accent);
  color: #fff;
  margin-bottom: 10px;
}

.outline-btn {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  color: var(--text);
}

.action-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.detail-tools {
  display: grid;
  gap: 16px;
}

.detail-tools .section-title {
  margin-bottom: 0;
}

.detail-engagement-box {
  border: 1px solid rgba(123, 92, 240, 0.12);
}

.reaction-row {
  display: flex;
  gap: 10px;
}

.reaction-btn {
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(123, 92, 240, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.reaction-btn.is-active {
  background: rgba(123, 92, 240, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.reaction-feedback {
  margin-top: 12px;
  font-size: 13px;
  color: #235887;
  font-weight: 600;
  line-height: 1.5;
}

.topbar {
  max-width: 430px;
  margin: 0 auto;
  padding: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-badge {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.brand-name {
  font-size: 15px;
  font-weight: 900;
}

.topnav {
  display: flex;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.topnav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.page-layout {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.page-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: var(--shadow);
}

.page-card + .page-card {
  margin-top: 16px;
}

.page-card h1 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 14px;
}

.page-card h2 {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 10px;
}

.page-card p,
.page-card li {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

.page-card ul {
  padding-left: 18px;
}

.page-card a {
  color: var(--accent);
  font-weight: 700;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.source-list {
  display: grid;
  gap: 14px;
}

.source-item {
  background: var(--soft);
  border-radius: 14px;
  padding: 16px;
}

.source-item h2 {
  margin-bottom: 8px;
}

/* ===== 계산기 ===== */
.calc-form {
  display: grid;
  gap: 16px;
}

.calc-field {
  display: grid;
  gap: 8px;
}

.calc-field > .field-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.calc-field > .field-help {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.calc-field select,
.calc-field input {
  width: 100%;
  border: 1px solid #dddfea;
  border-radius: 12px;
  padding: 15px 12px;
  font-size: 16px;
  font-family: "Noto Sans KR", sans-serif;
  background: #fff;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}

.calc-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M5.5 8L10 12.5L14.5 8' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}

.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 92, 240, 0.14);
}

.won-field {
  position: relative;
}

.won-field input {
  text-align: right;
  padding-right: 38px;
  font-weight: 700;
}

.won-field::after {
  content: "원";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}

.toggle-row {
  display: flex;
  gap: 10px;
}

.toggle-row button {
  flex: 1;
  min-height: 48px;
  border: 1px solid #dddfea;
  border-radius: 12px;
  background: #fff;
  color: #555;
  font-size: 14px;
  font-weight: 700;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
}

.toggle-row button.is-active {
  background: rgba(123, 92, 240, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== 계산 결과 ===== */
.amount-panel {
  margin-top: 18px;
  padding: 24px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, #7b5cf0 0%, #6244d4 100%);
  color: #fff;
  text-align: center;
}

.amount-panel.is-zero {
  background: linear-gradient(160deg, #7a8090 0%, #5f6472 100%);
}

.amount-label {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
}

.amount-value {
  margin: 8px 0 4px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.2;
}

.amount-note {
  font-size: 12.5px;
  line-height: 1.55;
  opacity: 0.88;
}

.gauge {
  height: 10px;
  margin: 16px 0 10px;
  border-radius: 999px;
  background: #ece8ff;
  overflow: hidden;
}

.gauge > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7b5cf0, #9c85f5);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gauge-note {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}

.figure-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.figure-row:last-child {
  border-bottom: none;
}

.figure-row span {
  color: #555;
}

.figure-row strong {
  font-size: 15px;
  font-weight: 700;
}

.figure-row strong.is-accent {
  color: var(--accent);
}

/* ===== 기준표 ===== */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cap-table {
  width: 100%;
  min-width: 272px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.cap-table th,
.cap-table td {
  padding: 11px 6px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.cap-table th {
  background: rgba(123, 92, 240, 0.09);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
}

.cap-table th:first-child,
.cap-table td:first-child {
  text-align: left;
}

.cap-table tbody tr:last-child td {
  border-bottom: none;
}

.cap-table th small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.amount-hint {
  min-height: 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

.table-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== 진단 ===== */
.quiz-item + .quiz-item {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.quiz-question {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}

.quiz-help {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.hit-card {
  background: var(--soft);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px;
}

.hit-card + .hit-card {
  margin-top: 12px;
}

.hit-card h3 {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 8px;
}

.hit-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.65;
}

.hit-how {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  font-size: 12.5px;
  color: #555;
  line-height: 1.55;
}

/* ===== 체크리스트 ===== */
.progress-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-count {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1.1;
  flex-shrink: 0;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.check-item:last-child {
  border-bottom: none;
}

.check-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 2px solid #dddfea;
  border-radius: 7px;
  display: grid;
  place-items: center;
  transition: 0.15s ease;
}

.check-mark svg {
  opacity: 0;
}

.check-item.is-done .check-mark {
  background: var(--accent);
  border-color: var(--accent);
}

.check-item.is-done .check-mark svg {
  opacity: 1;
}

.check-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.check-desc {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.check-item.is-done .check-title {
  color: #9a9a9a;
  text-decoration: line-through;
}

/* ===== FAQ ===== */
.faq-search {
  width: 100%;
  border: 1px solid #dddfea;
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 15px;
  font-family: "Noto Sans KR", sans-serif;
  margin-bottom: 8px;
}

.faq-search:focus {
  outline: none;
  border-color: var(--accent);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 28px 16px 0;
  font-size: 15px;
  font-weight: 700;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text);
  line-height: 1.5;
  position: relative;
  cursor: pointer;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
}

.faq-item.is-open .faq-q::after {
  content: "−";
}

.faq-a {
  display: none;
  padding: 0 0 16px;
  font-size: 14px;
  color: #444;
  line-height: 1.72;
}

.faq-item.is-open .faq-a {
  display: block;
}

.empty-note {
  padding: 28px 10px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== 주의 박스 ===== */
.caution-box {
  margin-top: 16px;
  padding: 15px 14px;
  border-radius: 12px;
  background: #fff7ec;
  border: 1px solid #f3ddba;
  font-size: 13px;
  color: #7a4a0b;
  line-height: 1.65;
}

.caution-box strong {
  color: #5e3707;
}

@media (min-width: 768px) {
  .page-wrapper,
  .topbar,
  .page-layout {
    max-width: 480px;
  }

  .main-title {
    font-size: 34px;
  }

  .detail-header-title {
    font-size: 30px;
  }

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