@charset "utf-8";

/* ============================================================
   HMK 오렌지 멤버십 — 고객용 홈페이지
   Design tokens
   ============================================================ */

:root {
  /* palette */
  --paper: #ffffff;
  --concrete: #f1f2f3;
  --concrete-2: #e7e9eb;
  --ink: #141c29;
  --navy: #1c2a4f;
  --muted: #5b6472;
  --line: #dee1e4;
  --line-soft: #ebedef;
  --orange: #e76d27;
  --orange-deep: #bf5316;
  --orange-tint: #fdf1e8;
  --white-90: rgba(255, 255, 255, 0.9);

  /* type */
  --sans: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system,
    BlinkMacSystemFont, system-ui, "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* rhythm */
  --band-pad: clamp(64px, 8.5vw, 116px);
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1180px;
  --radius: 4px;
}

/* ============================================================
   Reset & base
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: -0.012em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong { font-weight: 700; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
}
.skip:focus { left: 0; }

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--band-pad); }
.band--tight { padding-block: clamp(44px, 6vw, 76px); }
.band--concrete { background: var(--concrete); }
.band--navy { background: var(--navy); color: #fff; }
.band--navy h2, .band--navy h3 { color: #fff; }
.band--tint { background: var(--orange-tint); }
.band + .band--concrete,
.band--concrete + .band { border-top: 1px solid var(--line-soft); }

.grid { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Section heading
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
}
.band--navy .eyebrow { color: #f6b184; }
.band--navy .eyebrow::before { background: #f6b184; }

.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.sec-head p {
  margin-top: 16px;
  font-size: 1.06rem;
  color: var(--muted);
}
.band--navy .sec-head p { color: rgba(255, 255, 255, 0.76); }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white-90);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand-name {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.brand-name b { color: var(--orange); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 22px); }
.nav-links a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--orange-deep); }
.nav-links a[aria-current="page"] {
  color: var(--orange-deep);
  border-bottom-color: var(--orange);
}

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--navy);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 18px 40px rgba(20, 28, 41, 0.09);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.06rem;
  }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--orange); }
  .nav-cta .btn { padding: 12px 18px; font-size: 0.95rem; }
}

@media (max-width: 560px) {
  .brand-name { display: none; }
  .brand img { height: 24px; }
  .nav { min-height: 66px; }
  .nav-links { inset: 66px 0 auto 0; max-height: calc(100vh - 66px); }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.16s;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-deep); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--onnavy { background: #fff; color: var(--navy); }
.btn--onnavy:hover { background: var(--orange); color: #fff; }
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline-light:hover { border-color: #fff; }
.btn--sm { padding: 11px 18px; font-size: 0.94rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.txtlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--orange-deep);
  border-bottom: 1px solid rgba(191, 83, 22, 0.35);
  padding-bottom: 2px;
}
.txtlink:hover { border-bottom-color: var(--orange-deep); }
.txtlink::after { content: "→"; font-family: var(--mono); }

/* ============================================================
   Floor tag — 사이트 전체 공통 표식
   ============================================================ */

.ftag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 26px;
  padding: 0 9px;
  background: var(--navy);
  color: #fff;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.ftag--b1 { background: #33405f; }
.ftag--1f { background: var(--orange); }
.ftag--2f { background: #1f3b63; }
.ftag--on { background: #6b7484; }
.ftag--pt { background: #8a5a2b; }
.ftag--lg { height: 30px; font-size: 0.82rem; min-width: 52px; }
.card > .ftag, .welcome > .ftag, .tier > .ftag { align-self: flex-start; }

/* ============================================================
   Hero — 건물 단면 스택
   ============================================================ */

.hero {
  position: relative;
  padding-block: clamp(52px, 7vw, 92px) clamp(56px, 7vw, 96px);
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.6vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.045em;
}
.hero h1 .hl { color: var(--orange); }
.hero-lead {
  margin-top: 22px;
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 30em;
}
.hero .btn-row { margin-top: 30px; }

.hero-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-figures div {
  padding: 16px 16px 16px 0;
  border-right: 1px solid var(--line-soft);
}
.hero-figures div:last-child { border-right: 0; padding-right: 0; }
@media (max-width: 1180px) {
  .hero-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-figures div:nth-child(2) { border-right: 0; padding-right: 0; }
  .hero-figures div:nth-child(1), .hero-figures div:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}
.hero-figures dt,
.hero-figures .lab {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.hero-figures .num {
  display: block;
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: clamp(1.06rem, 1.7vw, 1.38rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.hero-figures .num em {
  font-style: normal;
  font-size: 0.66em;
  margin-left: 2px;
  white-space: nowrap;
}

/* stack */
.stack { position: relative; }
.stack-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.86rem;
  color: var(--muted);
}
.stack-cap b { color: var(--navy); font-size: 0.95rem; }

.floors { display: flex; flex-direction: column; gap: 8px; }

.floor {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 18px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(20, 28, 41, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: floorIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.floor:nth-child(1) { animation-delay: 0.28s; }
.floor:nth-child(2) { animation-delay: 0.16s; }
.floor:nth-child(3) { animation-delay: 0.04s; }

@keyframes floorIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.floor:hover,
.floor.is-active {
  transform: translateX(8px);
  box-shadow: 0 10px 26px rgba(20, 28, 41, 0.1);
  border-left-color: var(--orange);
}
.floor .f-num {
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border-radius: 2px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.04em;
}
.floor.is-1f .f-num { background: var(--orange); }
.floor .f-name { font-weight: 700; color: var(--navy); letter-spacing: -0.03em; }
.floor .f-desc {
  display: block;
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}
.floor .f-verb {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-deep);
  letter-spacing: 0.08em;
}

.ground {
  height: 12px;
  margin-top: 10px;
  border-top: 2px solid var(--navy);
  background: repeating-linear-gradient(
    -45deg,
    rgba(28, 42, 79, 0.28) 0 1px,
    transparent 1px 7px
  );
}

.stack-note {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card--flat { box-shadow: none; }
.card h3 {
  font-size: 1.18rem;
  margin-top: 14px;
  letter-spacing: -0.04em;
}
.card p { margin-top: 10px; color: var(--muted); font-size: 0.97rem; }
.card .card-list { margin-top: 16px; }

.card-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.96rem;
  line-height: 1.7;
  margin-top: 8px;
  color: var(--ink);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
}
.card-list li:first-child { margin-top: 0; }

.card-num {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange-deep);
  letter-spacing: 0.1em;
}

/* welcome item */
.welcome {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
}
.welcome .w-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.welcome h3 { font-size: 1.08rem; margin-top: 16px; }
.welcome p { margin-top: 8px; font-size: 0.93rem; color: var(--muted); }
.welcome .w-val {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--orange-deep);
  letter-spacing: -0.03em;
}
.welcome .w-val em { font-style: normal; font-size: 0.62em; color: var(--muted); margin-left: 4px; }

.welcome-sum {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  padding: 26px 30px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
}
.welcome-sum .ws-lab { font-size: 1rem; color: rgba(255, 255, 255, 0.8); }
.welcome-sum .ws-num {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.welcome-sum .ws-num b { color: #ffb27a; font-weight: 600; }

/* ============================================================
   Tables
   ============================================================ */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.96rem;
}
table.data th,
table.data td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.data thead th {
  background: var(--concrete);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody th {
  font-weight: 700;
  color: var(--navy);
  background: #fbfbfc;
  white-space: nowrap;
}
table.data td.c, table.data th.c { text-align: center; }
table.data .yes { color: var(--orange-deep); font-weight: 700; }
table.data .no { color: #b6bcc5; }
table.data .num { font-family: var(--mono); font-weight: 600; letter-spacing: -0.02em; }
table.data .hi { background: var(--orange-tint); }
table.data caption {
  caption-side: bottom;
  padding: 12px 16px;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: left;
  border-top: 1px solid var(--line-soft);
}
.scroll-hint {
  display: none;
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}
@media (max-width: 760px) { .scroll-hint { display: block; } }

/* ============================================================
   Tier / 등급
   ============================================================ */

.tiers { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

.tier {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.tier--1 { border-top-color: #f3b98d; }
.tier--2 { border-top-color: var(--orange); }
.tier--3 { border-top-color: var(--navy); }
.tier-step {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.tier h3 { font-size: 1.3rem; margin-top: 8px; }
.tier .tier-rate {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--concrete);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--navy);
}
.tier .tier-rate b { font-family: var(--mono); font-size: 1.16rem; color: var(--orange-deep); }
.tier .tier-cond {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.tier .card-list { margin-top: 16px; }

.biz-track {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 22px 26px;
  border: 1px solid var(--orange);
  background: var(--orange-tint);
  border-radius: var(--radius);
}
.biz-track h3 { font-size: 1.14rem; }
.biz-track p { font-size: 0.95rem; color: #6b4b33; flex: 1 1 320px; }

/* ============================================================
   Route / 교차 동선
   ============================================================ */

.routes { display: grid; gap: 14px; }
.route {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: 8px 26px;
  align-items: center;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.route-path { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.route-path .arw { font-family: var(--mono); color: var(--orange); font-weight: 600; }
.route h3 { font-size: 1.06rem; }
.route p { margin-top: 6px; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 720px) { .route { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   Calculator
   ============================================================ */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(20px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
}
@media (max-width: 880px) { .calc { grid-template-columns: minmax(0, 1fr); } }

.field { margin-bottom: 26px; }
.field:last-of-type { margin-bottom: 0; }
.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 10px;
}
.field .fval {
  font-family: var(--mono);
  font-size: 1.06rem;
  color: var(--orange-deep);
  font-weight: 600;
}
.field .fval.as-text { font-family: var(--sans); letter-spacing: -0.02em; }
.field .fhint { font-size: 0.86rem; color: var(--muted); margin-top: 8px; }

input[type="range"] {
  width: 100%;
  height: 34px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--concrete-2);
  border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  background: var(--orange);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(20, 28, 41, 0.28);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  background: var(--concrete-2);
  border-radius: 3px;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--orange);
  border: 3px solid #fff;
  border-radius: 50%;
}

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  flex: 1 1 auto;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.seg button:hover { border-color: var(--navy); color: var(--navy); }
.seg button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.calc-out {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
}
.calc-out .co-lab { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }
.calc-out .co-total {
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  margin-top: 4px;
  color: #ffb27a;
}
.calc-out .co-total em { font-style: normal; font-size: 0.4em; color: rgba(255, 255, 255, 0.72); margin-left: 6px; }
.calc-out ul { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.calc-out li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
}
.calc-out li span:last-child { font-family: var(--mono); font-weight: 600; color: #fff; }
.calc-out .co-verdict {
  margin-top: 20px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--orange);
  border-radius: 2px;
  font-size: 0.96rem;
  line-height: 1.7;
}
.calc-out .co-verdict b { color: #ffb27a; }

/* ============================================================
   Timeline / 프로그램 캘린더
   ============================================================ */

.months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .months { grid-template-columns: minmax(0, 1fr); } }

.month {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.month.is-big { border-color: var(--orange); background: var(--orange-tint); }
.month .m-no {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange-deep);
  letter-spacing: 0.08em;
}
.month h3 { font-size: 1.02rem; margin-top: 6px; }
.month p { margin-top: 6px; font-size: 0.88rem; color: var(--muted); }

/* ============================================================
   Steps
   ============================================================ */

.steps { counter-reset: st; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.step:first-child { border-top: 1px solid var(--line); }
.step::before {
  counter-increment: st;
  content: counter(st, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.step h3 { font-size: 1.14rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 560px) { .step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; } }

/* ============================================================
   FAQ
   ============================================================ */

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  letter-spacing: -0.03em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--orange);
  line-height: 1.2;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-a {
  padding: 0 4px 24px;
  color: var(--muted);
  font-size: 0.99rem;
  max-width: 62em;
}
.faq .faq-a p + p { margin-top: 12px; }

/* ============================================================
   Notes / disclaimers
   ============================================================ */

.note {
  padding: 20px 24px;
  background: var(--concrete);
  border-left: 3px solid var(--navy);
  border-radius: 2px;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.75;
}
.note--orange { background: var(--orange-tint); border-left-color: var(--orange); color: #6b4b33; }
.note b { color: var(--navy); }
.note--orange b { color: var(--orange-deep); }
.note p + p { margin-top: 8px; }
.note ul li { position: relative; padding-left: 14px; margin-top: 6px; }
.note ul li::before { content: "·"; position: absolute; left: 2px; }

.footnote {
  margin-top: 20px;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.7;
}
.footnote li { position: relative; padding-left: 16px; margin-top: 6px; }
.footnote li::before { content: "·"; position: absolute; left: 4px; }

/* ============================================================
   Page hero (하위 페이지)
   ============================================================ */

.page-hero {
  padding-block: clamp(48px, 6vw, 80px) clamp(36px, 4.4vw, 56px);
  background: var(--concrete);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-hero p {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46em;
}
.crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.crumb a:hover { color: var(--orange-deep); }

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px 40px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.cta-band p { margin-top: 12px; color: rgba(255, 255, 255, 0.78); max-width: 40em; }

/* ============================================================
   Legal document pages
   ============================================================ */

.doc { max-width: 860px; }
.doc h2 {
  font-size: 1.36rem;
  margin-top: 52px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.08rem; margin-top: 32px; }
.doc p { margin-top: 12px; font-size: 0.99rem; }
.doc ol { margin-top: 12px; }
.doc ol > li {
  position: relative;
  padding-left: 26px;
  margin-top: 10px;
  font-size: 0.99rem;
  counter-increment: doclist;
}
.doc ol { counter-reset: doclist; }
.doc ol > li::before {
  content: counter(doclist) ".";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--orange-deep);
}
.doc ul.plain > li {
  position: relative;
  padding-left: 18px;
  margin-top: 8px;
  font-size: 0.97rem;
}
.doc ul.plain > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
}
.doc .table-scroll { margin-top: 18px; }
.doc .note { margin-top: 20px; }

.toc {
  background: var(--concrete);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 44px;
}
.toc h2 { font-size: 1.02rem; border: 0; padding: 0; margin: 0 0 14px; }
.toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.toc a { font-size: 0.95rem; color: var(--navy); border-bottom: 1px solid transparent; }
.toc a:hover { border-bottom-color: var(--orange); color: var(--orange-deep); }
@media (max-width: 620px) { .toc ul { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   Form
   ============================================================ */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.97rem;
  margin-bottom: 8px;
}
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}
.form-row input:focus, .form-row select:focus { border-color: var(--orange); }
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 12px;
}
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--orange); flex-shrink: 0; }
.check a { color: var(--orange-deep); border-bottom: 1px solid rgba(191, 83, 22, 0.4); }
.form-msg {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}
.form-msg.is-on { display: block; }
.form-msg.ok { background: var(--orange-tint); color: #6b4b33; border-left: 3px solid var(--orange); }
.form-msg.info { background: var(--concrete); color: var(--muted); border-left: 3px solid var(--navy); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(48px, 5vw, 68px) 40px;
  font-size: 0.92rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
@media (max-width: 820px) { .footer-top { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
.footer-top h4 {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-weight: 600;
}
.footer-top li { margin-top: 8px; }
.footer-top a:hover { color: #ffb27a; }
.footer-brand img { height: 30px; width: auto; opacity: 0.95; }
.footer-brand p { margin-top: 16px; max-width: 30em; line-height: 1.7; }

.disclaimer {
  margin-top: 30px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  font-size: 0.86rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.62);
}
.disclaimer strong { color: rgba(255, 255, 255, 0.9); display: block; margin-bottom: 8px; font-size: 0.88rem; }
.disclaimer li { position: relative; padding-left: 14px; margin-top: 6px; }
.disclaimer li::before { content: "·"; position: absolute; left: 3px; }

.copyright {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}
.copyright .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.copyright .legal-links a { color: rgba(255, 255, 255, 0.72); }
.copyright .legal-links a:hover { color: #ffb27a; }

/* ============================================================
   Reveal on scroll
   ============================================================ */

.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ============================================================
   Utilities
   ============================================================ */

.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 44px; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lead { font-size: 1.08rem; color: var(--muted); }
.mono { font-family: var(--mono); font-weight: 600; letter-spacing: -0.02em; }

/* ── 404 ─────────────────────────────────────────────── */
.nf { max-width: 640px; padding: 40px 0 24px; }
.nf-stack { display: flex; flex-direction: column; gap: 8px; width: 74px; margin-bottom: 34px; }
.nf-stack .ftag { width: 100%; opacity: 0.32; }
.nf-stack .ftag:nth-child(2) { opacity: 1; }
.nf-title {
  margin: 14px 0 0;
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.nf-lead { margin-top: 18px; font-size: 1.05rem; color: var(--muted); }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.nf-help {
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem; color: var(--muted);
}
.nf-help b { font-family: var(--mono); color: var(--navy); letter-spacing: -0.02em; }

/* 자동 프로그램 걸러내기용 숨김 칸 — 화면에도, 낭독기에도 노출되지 않습니다 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
