:root {
  --paper: #f2f0e9;
  --paper-deep: #e8e6de;
  --ink: #171714;
  --ink-soft: #4f4d47;
  --muted: #77756e;
  --line: rgba(23, 23, 20, .15);
  --accent: #b9654d;
  --accent-deep: #934a37;
  --sage: #c9cabe;
  --white: #fffefa;
  --dark: #25251f;
  --good: #315e4a;
  --warn: #8b6027;
  --font: Pretendard, "Pretendard Variable", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 18px 55px rgba(29, 27, 20, .1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--font); word-break: keep-all; overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; }

.topbar { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 15px clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(242, 240, 233, .93); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 16px rgba(185, 101, 77, .22); }
.brand span { display: grid; gap: 1px; }
.brand b { font-size: 15px; letter-spacing: .13em; }
.brand small { color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .12em; }
.topbar nav { display: flex; align-items: center; gap: 5px; }
.topbar nav a { padding: 10px 13px; border-radius: 99px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { background: var(--dark); color: var(--white); }

main { min-height: calc(100vh - 200px); }
.loading-card { width: min(520px, calc(100% - 40px)); margin: 18vh auto; padding: 44px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); text-align: center; box-shadow: var(--shadow); }
.loading-dot { display: block; width: 12px; height: 12px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.74); } }

.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: clamp(36px, 7vw, 104px); align-items: end; width: min(1480px, 100%); margin: 0 auto; padding: clamp(68px, 10vw, 148px) clamp(22px, 5vw, 80px) clamp(58px, 8vw, 112px); }
.eyebrow { margin: 0 0 22px; color: var(--accent-deep); font-size: 11px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.hero h1 { max-width: 940px; margin: 0; font-size: clamp(48px, 7.4vw, 118px); font-weight: 640; letter-spacing: -.065em; line-height: .98; text-wrap: balance; }
.hero h1 span { display: block; }
.hero-copy { padding-bottom: 5px; }
.hero-copy > p { max-width: 470px; margin: 0 0 30px; color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 0 19px; border: 1px solid var(--dark); border-radius: 999px; background: var(--dark); color: var(--white); cursor: pointer; font-weight: 750; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--ink); }
.button.accent { border-color: var(--accent); background: var(--accent); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }

.method-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-strip article { min-height: 182px; padding: 34px clamp(22px, 4vw, 58px); border-right: 1px solid var(--line); }
.method-strip article:last-child { border-right: 0; }
.method-strip span { color: var(--accent-deep); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.method-strip h2 { margin: 21px 0 9px; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -.035em; }
.method-strip p { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.calculator-section { padding: clamp(74px, 9vw, 130px) clamp(20px, 5vw, 80px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .52fr); gap: 40px; width: min(1320px, 100%); margin: 0 auto 44px; align-items: end; }
.section-heading h2 { margin: 0; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.06; letter-spacing: -.055em; text-wrap: balance; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 22px; width: min(1320px, 100%); margin: 0 auto; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 26px; background: rgba(255, 254, 250, .78); box-shadow: var(--shadow); overflow: hidden; }
.form-panel { padding: clamp(24px, 3.5vw, 48px); }
.form-step + .form-step { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.step-head { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 22px; }
.step-head > b { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--dark); color: var(--white); font-size: 11px; }
.step-head h3 { margin: 1px 0 5px; font-size: 21px; letter-spacing: -.025em; }
.step-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields label, .field { display: grid; gap: 8px; min-width: 0; }
.fields label.wide, .field.wide { grid-column: 1 / -1; }
.field-hint { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.5; }
label > span, .field > span, fieldset legend { color: var(--ink-soft); font-size: 12px; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid rgba(23, 23, 20, .2); border-radius: 13px; outline: none; background: rgba(255, 255, 255, .78); color: var(--ink); }
input, select { height: 50px; padding: 0 14px; }
textarea { min-height: 118px; padding: 13px 14px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185, 101, 77, .11); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.scope-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.scope-grid label { position: relative; display: flex; align-items: center; gap: 9px; min-height: 45px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .55); cursor: pointer; font-size: 13px; font-weight: 650; }
.scope-grid input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 30px; }
.fine-print { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.result-panel { position: sticky; top: 98px; min-height: 550px; padding: clamp(24px, 3.2vw, 42px); background: var(--dark); color: var(--white); }
.result-placeholder { display: grid; min-height: 470px; align-content: space-between; }
.result-placeholder strong { display: block; max-width: 390px; margin-top: 18px; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.12; letter-spacing: -.04em; text-wrap: balance; }
.result-placeholder p { max-width: 420px; color: #b8b6ae; line-height: 1.65; }
.result-watermark { color: rgba(255, 255, 255, .08); font-size: clamp(82px, 10vw, 150px); font-weight: 800; line-height: .8; letter-spacing: -.08em; }
.result-summary { margin-bottom: 25px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.result-summary .eyebrow { color: #d89a87; }
.result-summary h3 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.04em; }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.result-meta span { padding: 6px 9px; border-radius: 99px; background: rgba(255, 255, 255, .09); color: #d5d2ca; font-size: 11px; }
.package-list { display: grid; gap: 11px; }
.package { padding: 18px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 17px; background: rgba(255, 255, 255, .055); }
.package.recommended { border-color: #d18871; background: rgba(185, 101, 77, .16); }
.package header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.package .type { color: #d89a87; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.package h4 { margin: 5px 0 0; font-size: 22px; }
.package .badge { padding: 5px 8px; border-radius: 99px; background: var(--accent); font-size: 10px; font-weight: 800; }
.package .amount { margin: 19px 0 11px; font-size: clamp(21px, 2.25vw, 30px); font-weight: 720; letter-spacing: -.025em; }
.package small { color: #aaa89f; line-height: 1.45; }
.unavailable { display: grid; min-height: 470px; align-content: center; text-align: left; }
.unavailable b { width: fit-content; margin-bottom: 18px; padding: 7px 10px; border-radius: 99px; background: rgba(216, 154, 135, .15); color: #efbaa9; font-size: 11px; }
.unavailable h3 { max-width: 450px; margin: 0 0 15px; font-size: clamp(31px, 3.2vw, 47px); line-height: 1.15; letter-spacing: -.04em; text-wrap: balance; }
.unavailable p { color: #bbb8af; line-height: 1.7; }
.unavailable .button { width: fit-content; margin-top: 16px; border-color: var(--accent); background: var(--accent); }
.disclaimers { margin: 20px 0 0; padding: 17px 0 0 18px; border-top: 1px solid rgba(255, 255, 255, .13); color: #aaa89f; font-size: 11px; line-height: 1.6; }

.data-note { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; padding: clamp(70px, 9vw, 120px) clamp(22px, 5vw, 80px); background: var(--paper-deep); }
.data-note > div { max-width: 650px; }
.data-note h2 { margin: 0; font-size: clamp(35px, 4vw, 62px); line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.data-note ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.data-note li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.data-note li:first-child { border-top: 1px solid var(--line); }
.data-note li > b { color: var(--accent-deep); font-size: 11px; }
.data-note li strong { display: block; margin-bottom: 6px; font-size: 18px; }
.data-note li p { margin: 0; color: var(--muted); line-height: 1.6; }

.automation-status { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); gap: clamp(28px, 6vw, 90px); align-items: center; padding: clamp(74px, 9vw, 130px) clamp(22px, 5vw, 80px); }
.automation-status > div { max-width: 760px; }
.automation-status h2 { margin: 0 0 20px; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.06; letter-spacing: -.055em; text-wrap: balance; }
.automation-status > div > p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.automation-card { display: grid; gap: 16px; padding: clamp(26px, 3.5vw, 46px); background: var(--dark); color: var(--white); }
.automation-card > span { color: #d89a87; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.automation-card strong { font-size: clamp(29px, 3vw, 43px); line-height: 1.16; letter-spacing: -.04em; }
.automation-card p { margin: 0; color: #bbb8af; line-height: 1.7; }
.automation-card .button { width: fit-content; margin-top: 8px; }

.staff-shell { width: min(1480px, 100%); margin: 0 auto; padding: clamp(45px, 6vw, 90px) clamp(20px, 5vw, 76px) 100px; }
.staff-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 35px; }
.staff-heading h1 { margin: 0; font-size: clamp(42px, 6vw, 82px); line-height: 1; letter-spacing: -.055em; }
.staff-heading p { max-width: 530px; margin: 18px 0 0; color: var(--muted); line-height: 1.65; }
.staff-status { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.staff-status span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 11px; font-weight: 700; }
.staff-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr); gap: 22px; align-items: start; }
.staff-form { padding: clamp(24px, 3vw, 42px); }
.staff-result { position: sticky; top: 98px; min-height: 600px; padding: clamp(24px, 3vw, 38px); background: var(--dark); color: var(--white); }
.staff-result .package { cursor: default; }
.staff-breakdown { margin: 13px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.staff-breakdown li { display: flex; justify-content: space-between; gap: 20px; padding: 5px 0; color: #c2bfb7; font-size: 12px; }
.upload-box { display: grid; gap: 12px; margin-top: 20px; padding: 18px; border: 1px dashed rgba(23, 23, 20, .26); border-radius: 15px; }
.upload-box input { height: auto; padding: 10px; }
.saved-banner { margin-top: 15px; padding: 14px; border-radius: 13px; background: rgba(49, 94, 74, .12); color: var(--good); font-size: 13px; font-weight: 700; }
.error-banner { margin: 0 0 18px; padding: 14px 16px; border: 1px solid rgba(185, 101, 77, .35); border-radius: 14px; background: rgba(185, 101, 77, .08); color: var(--accent-deep); line-height: 1.55; }

.login-wrap { display: grid; min-height: calc(100vh - 200px); place-items: center; padding: 40px 20px 90px; }
.login-card { width: min(470px, 100%); padding: clamp(28px, 5vw, 50px); }
.login-card img { width: 48px; height: 48px; border-radius: 14px; }
.login-card h1 { margin: 25px 0 10px; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -.05em; }
.login-card > p { margin: 0 0 28px; color: var(--muted); line-height: 1.65; }
.login-card form { display: grid; gap: 14px; }
.login-card label { display: grid; gap: 8px; }
.login-card .button { width: 100%; margin-top: 6px; }

.public-result-page { width: min(1020px, 100%); margin: 0 auto; padding: clamp(50px, 8vw, 105px) clamp(20px, 5vw, 70px) 110px; }
.public-result-page > header { margin-bottom: 36px; }
.public-result-page h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 6.5vw, 80px); line-height: 1.05; letter-spacing: -.055em; text-wrap: balance; }
.public-result-card { padding: clamp(25px, 4vw, 46px); background: var(--dark); color: var(--white); }
.public-result-card .package-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.public-result-card .package { min-height: 250px; }
.public-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

footer { display: flex; justify-content: space-between; gap: 32px; padding: 38px clamp(20px, 5vw, 80px); border-top: 1px solid var(--line); color: var(--muted); }
footer > div { display: grid; gap: 5px; }
footer b { color: var(--ink); letter-spacing: .13em; }
footer span, footer p { font-size: 11px; }
footer p { max-width: 650px; margin: 0; text-align: right; line-height: 1.55; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(440px, calc(100vw - 44px)); padding: 14px 17px; border-radius: 14px; background: var(--dark); color: var(--white); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero, .section-heading, .calculator-grid, .staff-layout, .data-note, .automation-status { grid-template-columns: 1fr; }
  .hero { align-items: start; }
  .hero-copy > p { max-width: 650px; }
  .section-heading { gap: 18px; }
  .calculator-grid, .staff-layout { gap: 15px; }
  .result-panel, .staff-result { position: static; }
  .data-note { gap: 38px; }
  .public-result-card .package-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar { min-height: 66px; padding: 12px 16px; }
  .brand img { width: 34px; height: 34px; }
  .brand small { display: none; }
  .topbar nav { gap: 2px; }
  .topbar nav a { padding: 9px 9px; font-size: 11px; }
  .topbar nav a:last-child { display: none; }
  .hero { padding-top: 68px; padding-bottom: 70px; gap: 31px; }
  .hero h1 { font-size: clamp(46px, 15vw, 72px); }
  .hero-copy > p { font-size: 16px; }
  .method-strip { grid-template-columns: 1fr; }
  .method-strip article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .method-strip article:last-child { border-bottom: 0; }
  .calculator-section { padding-left: 16px; padding-right: 16px; }
  .fields, .scope-grid { grid-template-columns: 1fr; }
  .form-panel, .result-panel, .staff-form, .staff-result { border-radius: 20px; }
  .form-actions { justify-content: stretch; }
  .form-actions .button { width: 100%; }
  .data-note { padding-left: 20px; padding-right: 20px; }
  .staff-shell { padding-left: 15px; padding-right: 15px; }
  .staff-heading { align-items: flex-start; flex-direction: column; }
  .staff-status { justify-content: flex-start; }
  footer { flex-direction: column; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
