/* 택슈런스 코덱스 v5.1 탭별 독립 홈페이지형 스타일 */
:root {
  --cream: #f2f0eb;
  --paper: #fffaf2;
  --ink: #141713;
  --muted: #626b63;
  --emerald: #0e5c4a;
  --emerald-2: #00754a;
  --mint: #dceee6;
  --coral: #f37338;
  --line: rgba(20, 23, 19, .13);
  --shadow: 0 26px 80px rgba(14, 92, 74, .12);
  --radius: 8px;
  --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  word-break: keep-all;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  min-height: 74px;
  padding: 0 clamp(16px, 3vw, 42px);
  border-bottom: 1px solid rgba(14, 92, 74, .14);
  background: rgba(242, 240, 235, .9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--cream);
  background: var(--emerald);
  font-weight: 950;
}

.brand span:last-child {
  display: grid;
  gap: 2px;
}

.brand strong {
  color: var(--emerald);
  font-size: 20px;
  font-weight: 950;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav-link {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #344038;
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cream);
  background: var(--emerald);
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
}

.primary-button {
  border: 1px solid var(--emerald);
  color: var(--cream);
  background: var(--emerald);
  box-shadow: 0 14px 32px rgba(14, 92, 74, .18);
}

.ghost-button {
  border: 1px solid rgba(14, 92, 74, .28);
  color: var(--emerald);
  background: rgba(255, 255, 255, .64);
}

.large {
  min-height: 56px;
  padding: 0 26px;
  font-size: 16px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(14, 92, 74, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--emerald);
}

.mobile-nav {
  position: sticky;
  top: 74px;
  z-index: 45;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(14, 92, 74, .14);
  background: var(--cream);
}

.mobile-nav .nav-link {
  border: 1px solid rgba(14, 92, 74, .14);
  background: rgba(255, 255, 255, .62);
}

.mobile-nav .nav-link.is-active {
  background: var(--emerald);
}

.page-panel {
  display: none;
}

.page-panel.is-active {
  display: block;
  animation: panelIn .22s ease both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 74px);
  overflow: hidden;
  background-color: var(--cream);
}

.page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--cream));
  pointer-events: none;
}

.hero-home {
  background:
    linear-gradient(90deg, rgba(242, 240, 235, .12), rgba(242, 240, 235, .18) 42%, rgba(242, 240, 235, .86) 64%, rgba(242, 240, 235, .98)),
    url("../img/v51-hero-home.png") center / cover no-repeat;
}

.hero-diagnosis {
  background:
    linear-gradient(90deg, rgba(14, 92, 74, .18), rgba(14, 92, 74, .08) 50%, rgba(242, 240, 235, .94)),
    url("../img/v51-hero-diagnosis.png") center / cover no-repeat;
}

.hero-income {
  background:
    linear-gradient(90deg, rgba(242, 240, 235, .96), rgba(242, 240, 235, .82) 48%, rgba(242, 240, 235, .25)),
    url("../img/v51-hero-career.png") center right / cover no-repeat;
}

.hero-license {
  background:
    linear-gradient(90deg, rgba(242, 240, 235, .95), rgba(242, 240, 235, .78) 48%, rgba(242, 240, 235, .2)),
    url("../img/v51-hero-license.png") center / cover no-repeat;
}

.hero-corporate,
.hero-consulting {
  background:
    linear-gradient(90deg, rgba(242, 240, 235, .94), rgba(242, 240, 235, .78) 48%, rgba(242, 240, 235, .16)),
    url("../img/v51-hero-corporate.png") center / cover no-repeat;
}

.hero-contact {
  background:
    linear-gradient(90deg, rgba(242, 240, 235, .94), rgba(242, 240, 235, .80) 48%, rgba(242, 240, 235, .22)),
    url("../img/v51-hero-career.png") center right / cover no-repeat;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 120px);
  padding: 58px 0;
}

.hero-home .hero-copy {
  margin-left: auto;
  margin-right: clamp(18px, 7vw, 120px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(58px, 7vw, 112px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: .96;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 28px 0 0;
  color: #3c453d;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.wide-section {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-title {
  max-width: 780px;
}

.section-title h2,
.contact-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 4vw, 68px);
  font-weight: 950;
  line-height: 1.08;
}

.three-line,
.feature-split,
.service-board,
.step-pages {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.three-line,
.feature-split {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-line div,
.feature-split div,
.service-board section,
.step-pages li,
.check-panel,
.contact-copy,
.lead-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 18px 56px rgba(14, 92, 74, .08);
}

.three-line div {
  min-height: 170px;
  padding: 26px;
}

.three-line strong,
.step-pages span,
.service-board span {
  color: var(--coral);
  font-size: 38px;
  font-weight: 950;
}

.three-line span,
.feature-split p,
.step-pages p,
.service-board p,
.contact-copy p {
  display: block;
  margin-top: 18px;
  color: #485149;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.65;
}

.diagnosis-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(480px, .75fr);
  gap: 28px;
  align-items: start;
}

.check-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.check-panel label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 64px;
  border-radius: var(--radius);
  padding: 15px;
  color: #303830;
  background: var(--paper);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
}

.check-panel input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--emerald);
}

.check-panel output {
  display: block;
  margin-top: 6px;
  border-radius: var(--radius);
  padding: 18px;
  color: var(--cream);
  background: var(--emerald);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.55;
}

.calculator-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .75fr);
  gap: 24px;
}

.calculator-controls {
  display: grid;
  gap: 16px;
}

.calculator-controls label {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, .78);
}

.calculator-controls span {
  color: var(--emerald);
  font-weight: 950;
}

.calculator-controls strong {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 950;
}

.calculator-controls input {
  width: 100%;
  accent-color: var(--emerald);
}

.big-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  border-radius: var(--radius);
  padding: 34px;
  color: var(--cream);
  background:
    radial-gradient(circle at 86% 16%, rgba(243, 115, 56, .34), transparent 28%),
    var(--emerald);
  box-shadow: var(--shadow);
}

.big-result span {
  color: var(--mint);
  font-weight: 950;
}

.big-result strong {
  margin-top: 18px;
  color: #ffffff;
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 950;
  line-height: 1;
}

.big-result p {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.62;
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.flow-line span {
  display: grid;
  place-items: center;
  min-height: 70px;
  border-radius: var(--radius);
  color: var(--emerald);
  background: var(--mint);
  font-weight: 950;
  text-align: center;
}

.step-pages {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-pages li {
  min-height: 280px;
  padding: 28px;
}

.step-pages strong,
.feature-split strong,
.service-board h2 {
  display: block;
  margin-top: 18px;
  color: var(--emerald);
  font-size: 25px;
  font-weight: 950;
}

.feature-split div,
.service-board section,
.contact-copy,
.lead-form {
  padding: 28px;
}

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

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--emerald);
  font-weight: 950;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(14, 92, 74, .2);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--ink);
  background: var(--paper);
}

.lead-form input,
.lead-form select {
  min-height: 50px;
}

.lead-form textarea {
  resize: vertical;
  padding-top: 14px;
  line-height: 1.55;
}

.primary-button.submit {
  min-height: 54px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.site-footer {
  display: grid;
  gap: 10px;
  padding: 40px clamp(18px, 3vw, 42px);
  color: rgba(255, 255, 255, .78);
  background: var(--emerald);
}

.site-footer strong {
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.site-footer p {
  margin: 0;
  font-weight: 750;
  line-height: 1.6;
}

@media (max-width: 1240px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }
  .top-nav,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
    justify-self: end;
  }
  .mobile-nav.is-open {
    display: grid;
  }
  .three-line,
  .feature-split,
  .service-board,
  .step-pages,
  .diagnosis-layout,
  .calculator-page,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    padding: 0 16px;
  }
  .brand {
    min-width: 0;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand strong {
    font-size: 17px;
  }
  .mobile-nav {
    top: 66px;
    grid-template-columns: 1fr;
  }
  .page-hero {
    min-height: calc(100vh - 66px);
    align-items: end;
  }
  .hero-copy,
  .hero-home .hero-copy {
    width: calc(100% - 28px);
    margin: 0 auto;
    padding: 0 0 42px;
  }
  .hero-copy h1 {
    font-size: clamp(44px, 14vw, 66px);
  }
  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }
  .hero-home,
  .hero-diagnosis,
  .hero-income,
  .hero-license,
  .hero-corporate,
  .hero-consulting,
  .hero-contact {
    background-position: center;
  }
  .wide-section {
    width: calc(100% - 28px);
    padding: 52px 0;
  }
  .section-title h2,
  .contact-copy h2 {
    font-size: clamp(32px, 10vw, 46px);
  }
  .big-result {
    min-height: 280px;
  }
  .flow-line {
    grid-template-columns: 1fr;
  }
}
