
:root {
  --bg: #fbf7ef;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #eadfce;
  --green: #2f5d50;
  --green-dark: #24483f;
  --brown: #8a6a43;
  --cream: #fffaf1;
  --soft-green: #e8f2ec;
  --soft-brown: #f3eadc;
  --gold: #c49a4b;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.08);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(232, 242, 236, 0.95), transparent 34%),
    linear-gradient(180deg, #fbf7ef 0%, #fffaf1 100%);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(251, 247, 239, 0.86);
  border-bottom: 1px solid rgba(234, 223, 206, 0.82);
}
.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 850; letter-spacing: -0.04em; white-space: nowrap;
}
.logo-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--green); color: white;
  box-shadow: 0 10px 22px rgba(47, 93, 80, 0.20);
  flex: 0 0 auto;
}
.logo-mark svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: #ffffff;
}
.nav-links {
  display: flex; gap: 18px; font-size: 14px;
  color: var(--muted); white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.hero { padding: 72px 0 34px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 34px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(255,255,255,0.76);
  color: var(--brown); font-size: 14px; margin-bottom: 18px;
}
h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.075em;
}
.hero p, .lead {
  margin: 22px 0 0;
  max-width: 660px;
  font-size: 18px;
  color: var(--muted);
  word-break: keep-all;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px;
  border-radius: 14px; border: 1px solid transparent;
  font-weight: 800; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: white; box-shadow: 0 14px 28px rgba(47,93,80,0.20); }
.btn-primary:hover { background: var(--green-dark); }
.btn-sub { background: white; border-color: var(--line); color: var(--ink); }
.card, .hero-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
section { padding: 36px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 20px; margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.065em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 540px;
  word-break: keep-all;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.category-card {
  min-height: 180px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 12px 30px rgba(31,41,51,0.06);
}
.category-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 15px; background: var(--soft-green); font-size: 21px;
}
.category-card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.045em; }
.category-card p { margin: 0; color: var(--muted); font-size: 14px; word-break: keep-all; }
.status {
  display: inline-flex; width: fit-content;
  padding: 6px 10px; border-radius: 999px;
  background: var(--soft-brown); color: #7a5a18;
  font-size: 12px; font-weight: 850;
}
.status.live { background: var(--soft-green); color: var(--green); }
.tools-grid, .content-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.tool-card {
  display: grid; gap: 12px;
  padding: 18px; border: 1px solid var(--line);
  border-radius: 20px; background: white;
  box-shadow: 0 10px 24px rgba(31,41,51,0.05);
}
.tool-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.tool-card strong { font-size: 17px; letter-spacing: -0.04em; }
.tool-card span, .tool-card p { color: var(--muted); font-size: 14px; word-break: keep-all; margin: 0; }
.mini-status {
  padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 850;
  background: var(--soft-green); color: var(--green); white-space: nowrap;
}
.mini-status.soon { background: var(--soft-brown); color: var(--brown); }
.calculator {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 22px;
  align-items: start;
}
.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
label {
  display: grid; gap: 8px;
  font-size: 14px; font-weight: 800; letter-spacing: -0.025em;
}
label span {
  color: var(--muted); font-size: 13px; font-weight: 500;
}
input, select {
  width: 100%; min-height: 46px;
  border-radius: 14px; border: 1px solid var(--line);
  padding: 0 14px; font-size: 15px;
  outline: none; background: #fff; color: var(--ink);
}
input:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(196,154,75,0.16);
}
.result-card {
  position: sticky; top: 92px;
  background: linear-gradient(145deg, var(--green), #284a43);
  color: white; border: none;
}
.result-label { color: rgba(255,255,255,0.72); font-size: 14px; margin: 0 0 4px; }
.result-main {
  margin: 0; font-size: 42px; line-height: 1.05;
  letter-spacing: -0.06em; font-weight: 900;
}
.result-sub { display: grid; gap: 10px; margin-top: 22px; }
.result-line {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.82);
}
.result-line b { color: white; }
.notice {
  margin-top: 16px; padding: 14px 16px;
  border-radius: 16px; background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82); font-size: 13px; word-break: keep-all;
}
.reset {
  width: 100%; margin-top: 18px;
  border: 1px solid rgba(255,255,255,0.22);
  color: white; background: rgba(255,255,255,0.08);
}
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.check-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--line);
  background: white; border-radius: 18px;
}
.check-icon {
  flex: 0 0 auto; width: 26px; height: 26px;
  border-radius: 9px; display: grid; place-items: center;
  background: var(--soft-green); color: var(--green); font-weight: 900;
}
.check-item b { display: block; margin-bottom: 4px; letter-spacing: -0.03em; }
.check-item span { display: block; color: var(--muted); font-size: 14px; word-break: keep-all; }
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}
th, td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { background: #fbf4e8; font-size: 14px; color: var(--muted); }
td { background: #fff; }
tr:last-child td { border-bottom: 0; }
.footer-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
}
footer { padding: 34px 0 50px; color: var(--muted); font-size: 13px; }
footer .wrap { border-top: 1px solid var(--line); padding-top: 22px; }
@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid, .content-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .calculator { grid-template-columns: 1fr; }
  .result-card { position: static; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: 42px; }
  .input-grid, .check-grid, .category-grid, .tools-grid, .content-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  th, td { padding: 13px 12px; font-size: 14px; }
  .result-main { font-size: 36px; }
}


/* Mobile-friendly cost cards */
.cost-list {
  display: grid;
  gap: 14px;
}

.cost-item {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.05);
}

.cost-item-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.cost-item-title span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--soft-green);
  font-size: 17px;
}

.cost-item p {
  margin: 0;
  color: var(--muted);
  word-break: keep-all;
}

.cost-item b {
  color: var(--ink);
}

.desktop-only {
  display: block;
}

.mobile-friendly {
  display: none;
}

@media (max-width: 640px) {
  .desktop-only {
    display: none;
  }

  .mobile-friendly {
    display: grid;
  }

  .wrap {
    padding: 0 18px;
  }

  .hero {
    padding: 34px 0 20px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.12;
    letter-spacing: -0.065em;
  }

  .hero p,
  .lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .card,
  .hero-card {
    padding: 20px;
    border-radius: 22px;
  }

  .tool-card,
  .category-card,
  .check-item,
  .cost-item {
    border-radius: 20px;
  }

  .nav {
    height: 72px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 16px;
  }

  .logo {
    font-size: 20px;
  }

  .section-head h2 {
    font-size: 34px;
    line-height: 1.15;
  }

  .section-head p {
    font-size: 15px;
    line-height: 1.7;
  }

  .cost-item-title {
    font-size: 20px;
  }
}


/* Food calculator */
.food-tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.food-tip {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.05);
}

.food-tip h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.food-tip p {
  margin: 0;
  color: var(--muted);
  word-break: keep-all;
  font-size: 14px;
}

.food-result-small {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .food-tip-grid {
    grid-template-columns: 1fr;
  }
}


/* Extra calculators */
.simple-result-card {
  background: linear-gradient(145deg, var(--green), #284a43);
  color: white;
  border: none;
}

.big-result {
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.small-result {
  margin-top: 12px;
  color: rgba(255,255,255,0.82);
  word-break: keep-all;
}

.result-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.result-chip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.82);
}

.result-chip b {
  color: white;
}

.checklist-note {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--muted);
  word-break: keep-all;
}

.table-card-list {
  display: grid;
  gap: 12px;
}

.small-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.small-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.05);
}

.small-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.small-card p {
  margin: 0;
  color: var(--muted);
  word-break: keep-all;
  font-size: 14px;
}

@media (max-width: 900px) {
  .small-card-grid {
    grid-template-columns: 1fr;
  }

  .big-result {
    font-size: 34px;
  }
}


/* Guide pages */
.guide-category {
  margin-top: 28px;
}

.guide-category h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.06em;
}

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

.guide-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.05);
}

.guide-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.guide-block {
  display: grid;
  gap: 6px;
}

.guide-label {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.guide-label.warn {
  background: var(--soft-brown);
  color: var(--brown);
}

.guide-block p,
.guide-card p {
  margin: 0;
  color: var(--muted);
  word-break: keep-all;
  font-size: 14px;
}

.guide-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.guide-card li {
  margin: 5px 0;
}

.quick-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quick-menu a {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--brown);
  font-size: 14px;
  font-weight: 800;
}

.alert-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--muted);
  word-break: keep-all;
}

.alert-card b {
  color: var(--ink);
}

@media (max-width: 900px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}
