:root {
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f2ebe7;
  --surface-note: #f4f0ef;
  --line: #dcdcdc;
  --line-soft: rgba(34, 34, 34, 0.08);
  --text: #222222;
  --text-strong: #000000;
  --text-muted: #767676;
  --ink: #304a55;
  --accent: #e04f38;
  --accent-dark: #304a55;
  --accent-soft: rgba(224, 79, 56, 0.08);
  --mint: #ece7df;
  --mint-strong: rgba(75, 107, 246, 0.18);
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: #ffffff;
}

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

p {
  margin: 0;
  padding: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

input,
label {
  font: inherit;
}

.page {
  width: 100%;
  max-width: 500px;
  min-height: 100vh;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding-bottom: 112px;
}

.wrap-header {
  position: relative;
}

.wrap-top {
  position: relative;
  max-width: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0 auto;
}

.wrap-top-txt {
  position: absolute;
  left: 0;
  top: 290px;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  bottom: 25px;
}

.top-img {
  max-width: 500px;
  margin: 0 auto;
}

.top-img::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.top-img img {
  width: 100%;
  min-width: 280px;
  margin: 0 auto;
}

.title {
  padding: 0 16px;
}

.sTit {
  font-family: 'Noto Sans KR', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
}

.m-tit {
  text-align: left;
  font-family: "Nanum Myeongjo", serif;
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: #fff;
}

.write-bar {
  display: flex;
  justify-content: space-between;
  margin: 20px 16px 0;
  max-width: 500px;
}

.writer {
  display: flex;
  align-items: center;
}

.writer img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
}

.name {
  font-size: 14px;
  line-height: 1;
  color: #fff;
  margin-left: 6px;
}

.date {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 24px;
  color: #fff;
  padding-left: 20px;
}

.article {
  padding: 50px 16px 56px;
}

.article p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: normal;
  word-break: keep-all;
}

.article p + p {
  margin-top: 14px;
}

.lead {
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: normal;
}

.lead strong,
.article strong {
  color: var(--text-strong);
}

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

.summary-strip {
  margin: 24px 0 34px;
  padding: 18px 18px 20px;
  border-top: 2px solid #222222;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(242, 235, 231, 0.8), rgba(242, 235, 231, 0));
}

.summary-strip h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: normal;
}

.summary-list li + li {
  margin-top: 9px;
}

.summary-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.section {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}

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

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-title {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: "Nanum Myeongjo", serif;
  font-size: 27px;
  line-height: 1.55;
  letter-spacing: -0.035em;
}

.section-title.compact {
  font-size: 24px;
  line-height: 1.55;
}

.pull-quote {
  margin: 22px 0;
  padding: 18px 0 18px 18px;
  border-left: 3px solid rgba(75, 75, 75, 0.75);
  color: var(--ink);
  font-family: "Nanum Myeongjo", serif;
  font-size: 21px;
  line-height: 1.75;
  letter-spacing: -0.03em;
}

.note-box {
  margin: 22px 0;
  padding: 24px 16px;
  border-radius: 8px;
  background: #f2ebe7;
  border: 1px solid var(--line);
}

.note-box h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.note-box p {
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: normal;
  color: #000000;
}

.detail-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: normal;
}

.detail-list li + li {
  margin-top: 10px;
}

.detail-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.inline-compare {
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.compare-item {
  padding: 16px 16px 17px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.compare-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.compare-item span {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: normal;
}

.transition-note {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: normal;
}

.promo {
  margin-top: 40px;
  padding: 22px 18px;
  border-radius: 8px;
  background: #f2ebe7;
  border: 1px solid var(--line);
}

.promo h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Nanum Myeongjo", serif;
  font-size: 24px;
  line-height: 1.6;
  letter-spacing: -0.03em;
}

.promo p {
  margin-top: 14px;
  color: #333333;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: normal;
}

.closing {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 2px solid #222222;
}

.calculator-section {
  margin-top: 42px;
}

.calculator-wrap {
  padding: 24px 18px;
  border-radius: 8px;
  background: #f2ebe7;
  border: 1px solid var(--line);
}

.calculator-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Nanum Myeongjo", serif;
  font-size: 24px;
  line-height: 1.5;
}

.calculator-head p {
  margin-top: 10px;
  color: #333333;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: normal;
}

.calculator-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: #304a55;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: none;
}

.calculator-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 20px;
}

.calculator-tab {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.calculator-tab.is-active {
  background: #4b6bf6;
  border-color: #4b6bf6;
  color: #ffffff;
}

.calc-panel {
  display: none;
}

.calc-panel.is-active {
  display: block;
}

.calculator-details {
  display: none;
  margin-top: 14px;
}

.calculator-details.is-open {
  display: block;
}

.form-block + .form-block {
  margin-top: 18px;
}

.accordion-item + .accordion-item {
  margin-top: 12px;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.accordion-trigger::after {
  content: "+";
  flex: 0 0 auto;
  color: #4b4b4b;
  font-size: 20px;
  line-height: 1;
}

.accordion-item.is-open .accordion-trigger::after {
  content: "−";
}

.accordion-panel {
  display: none;
  padding-top: 10px;
}

.accordion-item.is-open .accordion-panel {
  display: block;
}

.accordion-summary {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: normal;
}

.form-title {
  margin: 0 0 11px;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 800;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.option-card input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.option-copy strong {
  display: block;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.option-copy span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.42;
  letter-spacing: normal;
}

.sub-option-group {
  display: none;
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.sub-option-group + .option-list {
  margin-top: 10px;
}

.score-box {
  margin-top: 20px;
  padding: 18px 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  text-align: center;
}

.score-sub {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.score-label {
  margin: 0;
  color: var(--ink);
  font-family: "Nanum Myeongjo", serif;
  font-size: 21px;
  line-height: 1.42;
  letter-spacing: -0.03em;
}

.floating-cta-wrap {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  width: 100%;
  max-width: 500px;
  padding: 16px 16px calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 28%, rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(10px);
}

.floating-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 5px;
  background: #304a55;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  box-shadow: none;
}

.score-value {
  color: var(--accent);
  font-size: 31px;
  font-weight: 800;
}

.rank-alert {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ending {
  margin-top: 24px;
  padding: 20px 18px 18px;
  border-radius: 8px;
  background: #f2ebe7;
  border: 1px solid var(--line);
}

.ending p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: normal;
  word-break: keep-all;
}

.ending p + p {
  margin-top: 12px;
}

.ending-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 400;
}

@media (max-width: 420px) {
  .m-tit {
    font-size: 26px;
    line-height: 1.34;
  }

  .sTit {
    font-size: 16px;
    line-height: 1.56;
  }

  .section-title {
    font-size: 24px;
    line-height: 1.38;
  }

  .pull-quote {
    font-size: 18px;
    line-height: 1.58;
  }

  .article {
    padding-left: 16px;
    padding-right: 16px;
  }

  .title,
  .write-bar {
    padding-left: 0;
    padding-right: 0;
  }
}


.line {
  max-width: 500px;
  margin: 0 auto;
  background-color: #f1f1f1;
  height: 8px;
  border: 0;
}

.series-footer {
  padding: 0 16px 0;
}

.sub-txt {
  font-size: 14px;
  text-align: center;
  color: #999;
  padding: 70px 0 50px 0;
}

.icon-cate {
    width: 60px;
    height: 60px;
    border-radius: 25px;
    background-color: #E1F4FF;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.icon-cate img {
    width: 100%;
    max-width: 38px;
    height: auto;
}

.txt-cate {
  font-size: 18px;
  font-weight: 500;
  padding: 10px 0 30px;
  color: #000;
  text-align: center;
}

.tag {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto 50px;
  padding: 0 16px;
  width: 100%;
  max-width: 500px;
}

.tag-word {
  font-size: 15px;
  color: #333;
  border-radius: 3px;
  background-color: #f8f8f8;
  padding: 6px 8px;
  display: inline-block;
  margin: 0 10px 5px 0;
}

.wrap-list {
  margin: 0 auto;
  max-width: 500px;
  position: relative;
  padding: 32px 20px 110px 20px;
  word-break: keep-all;
  background: #fff;
}

.list-title {
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 32px;
}

.list-box {
  display: flex;
  align-items: center;
  &.mb-15 {
    margin-bottom: 15px;
  }
}

.list-img {
  padding-right: 10px;
  flex: 0 0 auto;
}

.list-img img {
  width: 60px;
}

.list-txt {
  min-width: 0;
}

.list-Tit {
  font-size: 15px;
  line-height: 1.5;
  color: #222;
}

.list-Date {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.list-line {
  max-width: 500px;
  margin: 10px auto;
  background-color: #e9e9e9;
  height: 1px;
  border: 0;
}

.list-line:last-child {
  display: none;
}
