:root {
  --bg: #f4efe8;
  --bg-accent: #e9dfd2;
  --ink: #15202b;
  --muted: #687787;
  --line: rgba(21, 32, 43, 0.1);
  --line-strong: rgba(21, 32, 43, 0.16);
  --surface: rgba(255, 252, 246, 0.84);
  --surface-solid: #fffdf9;
  --surface-dark: #1b2732;
  --accent: #c8612d;
  --accent-deep: #a64d22;
  --accent-soft: rgba(200, 97, 45, 0.1);
  --green: #17785e;
  --shadow-main: 0 28px 70px rgba(36, 45, 53, 0.14);
  --shadow-card: 0 16px 30px rgba(36, 45, 53, 0.06);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard Variable", "SUIT Variable", "Segoe UI Variable Text", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 22%),
    radial-gradient(circle at right top, rgba(200, 97, 45, 0.08), transparent 18%),
    linear-gradient(180deg, #f8f4ee, var(--bg));
  padding: 22px;
}

.site-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.masthead {
  padding: 22px 24px 28px;
  background:
    linear-gradient(135deg, rgba(233, 223, 210, 0.85), rgba(255, 252, 246, 0.55));
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-mark,
.brand-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  background: rgba(21, 32, 43, 0.08);
  color: var(--ink);
}

.brand-note {
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
}

.masthead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.hero-block {
  padding: 32px;
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(255, 250, 243, 0.95), rgba(242, 235, 227, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-card);
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-copy {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.stat-card {
  padding: 16px 18px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-card strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.hero-panel {
  display: grid;
}

.hero-panel-card {
  height: 100%;
  padding: 28px;
  border-radius: 30px;
  background: var(--surface-dark);
  color: #f7f2ea;
  box-shadow: var(--shadow-card);
}

.panel-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #e0a17e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel-card h2,
.guide-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(247, 242, 234, 0.82);
  line-height: 1.8;
  font-size: 15px;
}

.content-area {
  padding: 24px;
}

.calculator-section {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.calculator-section + .calculator-section,
.calculator-section + .guide-section {
  margin-top: 18px;
}

.salary-theme {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 248, 241, 0.56));
}

.holiday-theme {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(245, 247, 250, 0.56));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h3 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.section-head p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(21, 32, 43, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
}

.editor-panel,
.results-panel {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
}

.editor-panel {
  padding: 20px;
}

.results-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.editor-head,
.results-head,
.breakdown-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.editor-head strong,
.results-head strong,
.breakdown-head strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.editor-head span,
.results-head span,
.breakdown-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-stack {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

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

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(21, 32, 43, 0.12);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input:focus,
select:focus {
  border-color: rgba(200, 97, 45, 0.42);
  box-shadow: 0 0 0 4px rgba(200, 97, 45, 0.12);
}

input::placeholder {
  color: #99a4ae;
}

.action-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.primary-button,
.secondary-button {
  height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 26px rgba(200, 97, 45, 0.18);
}

.primary-button:hover {
  background: var(--accent-deep);
}

.secondary-button {
  background: rgba(21, 32, 43, 0.06);
  color: var(--ink);
}

.micro-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.hero-result {
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(241, 230, 219, 0.9), rgba(255, 250, 244, 0.95));
  border: 1px solid rgba(200, 97, 45, 0.14);
}

.result-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-value {
  margin: 0;
  color: var(--green);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 800;
  text-wrap: balance;
}

.breakdown-card {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(250, 247, 242, 0.82);
}

.breakdown {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(21, 32, 43, 0.08);
}

.row:last-child {
  border-bottom: 0;
}

.row strong {
  font-size: 14px;
}

.row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.guide-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.guide-card.dark {
  background: linear-gradient(180deg, #25313b, #1c2731);
  border-color: rgba(255, 255, 255, 0.04);
  color: #f6f2ea;
}

.guide-card.dark p {
  color: rgba(246, 242, 234, 0.78);
}

.guide-card.dark .panel-eyebrow {
  color: #f0b48d;
}

@media (max-width: 1120px) {
  .masthead-layout,
  .calculator-grid,
  .guide-section,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 10ch;
  }
}

@media (max-width: 760px) {
  body {
    padding: 12px;
  }

  .masthead,
  .content-area {
    padding: 16px;
  }

  .topbar,
  .section-head,
  .editor-head,
  .results-head,
  .breakdown-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-block,
  .hero-panel-card,
  .calculator-section,
  .editor-panel,
  .results-panel,
  .guide-card {
    padding: 18px;
  }

  .field-grid,
  .action-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .brand-note {
    display: none;
  }

  h1 {
    max-width: none;
    font-size: 44px;
  }
}
