:root {
  --ink: #102b24;
  --ink-2: #334b44;
  --muted: #6c7a74;
  --green: #0f513b;
  --green-2: #0a6a4b;
  --green-soft: #eaf5ef;
  --warn-deep: #7c2d12;
  --cream: #fbf8f1;
  --bg2: #f4efe5;
  --paper: #ffffff;
  --line: #ded8cb;
  --line-strong: #c8c0b1;
  --amber: #eead27;
  --amber-soft: #fff5dc;
  --shadow: 0 14px 40px rgba(16, 43, 36, 0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 15% -10%, rgba(238, 173, 39, 0.09), transparent 26rem), var(--cream);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }

.trust-strip {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 16px;
  color: #3e3a31;
  background: #f1e8d7;
  border-bottom: 1px solid #ded1ba;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}
.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-2);
  box-shadow: 0 0 0 4px rgba(10, 106, 75, 0.16);
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1180px, calc(100% - 36px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #0e2e20, #166534);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.brand-text b {
  display: block;
  color: var(--green);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.site-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.site-nav a:hover, .site-nav a.active {
  background: var(--green-soft);
  color: var(--green);
}
.header-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 84px;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 14px;
}
.crumb a:hover { text-decoration: underline; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 12px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 850;
  max-width: 900px;
}
.hero-copy {
  max-width: 820px;
  margin: 0 0 26px;
  color: var(--ink-2);
  font-size: 16.5px;
}

.eeat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.eeat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.eeat-pill.verified {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

/* 2-Column Calculator & Live Receipt Workspace */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 36px;
}
@media (max-width: 920px) {
  .workspace-grid { grid-template-columns: 1fr; }
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0 0 5px;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}
.form-body { padding: 22px 24px 24px; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}
@media (max-width: 600px) {
  .field-grid { grid-template-columns: 1fr; }
}
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 800;
}
.plain-note {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
}
input[type="number"], input[type="text"], select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffdfa;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  font-weight: 700;
  font-size: 15px;
}
input:focus, select:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(10, 106, 75, 0.13);
}
.utility-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.utility-option {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  background: #fffdfa;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.utility-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex: 0 0 auto;
}
.form-tip {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  background: #f4f7f5;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
}
.tip-icon {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  background: var(--green-2);
  font-size: 12px;
  font-weight: 900;
}

/* Right Receipt Panel */
.result-panel { overflow: hidden; }
.result-top {
  padding: 25px 25px 22px;
  color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.14), transparent 12rem), var(--green);
  transition: background 0.2s ease;
}
.result-top.warn {
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.14), transparent 12rem), var(--warn-deep);
}
.result-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.result-kicker::before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.result-top.warn .result-kicker::before {
  content: "!";
  color: var(--warn-deep);
}
.result-top h2 {
  margin: 0 0 4px;
  color: rgba(255,255,255,0.92);
  font-size: 17px;
  font-weight: 700;
}
.amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}
.amount strong {
  font-size: clamp(36px, 4.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}
.amount span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 750;
}
.result-top p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
  line-height: 1.5;
}
.result-body { padding: 22px 25px 24px; }
.meaning-box {
  margin-bottom: 20px;
  padding: 13px 15px;
  color: #483a1b;
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
}
.meaning-box strong {
  display: block;
  margin-bottom: 3px;
  color: #2f291b;
  font-size: 13.5px;
}
.section-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 850;
  color: var(--ink);
}
.math-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8.5px 0;
  border-bottom: 1px solid #eee9df;
  color: var(--ink-2);
  font-size: 13px;
}
.math-row:last-child {
  border-bottom: 0;
  color: var(--ink);
  font-weight: 850;
  font-size: 14px;
}
.math-row:last-child strong {
  color: var(--green-2);
  font-size: 15.5px;
}
.share-bar {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.btn-secondary {
  flex: 1;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--green);
  font-weight: 800;
  font-size: 13.5px;
}
.btn-secondary:hover { background: var(--green-soft); }

/* Editorial Content Container */
.editorial-wrap {
  max-width: 840px;
}
.answer {
  border: 1px solid var(--green);
  border-left: 5px solid var(--green);
  border-radius: 13px;
  background: #fff;
  padding: 18px 22px;
  margin: 0 0 32px;
}
.answer .lbl {
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.answer p {
  margin: 7px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
}

.editorial-wrap h2 {
  margin: 36px 0 12px;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.editorial-wrap h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  font-weight: 800;
}
.editorial-wrap p {
  margin: 0 0 14px;
  color: var(--ink-2);
}
.editorial-wrap ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--ink-2);
}
.editorial-wrap li { margin-bottom: 9px; }

.fact {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow-x: auto;
  margin: 20px 0 26px;
}
.fact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}
.fact-head b { font-size: 14px; }
.tier {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}
.fact table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.fact th {
  padding: 10px 16px;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
}
.fact td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.fact tr:last-child td { border-bottom: 0; }
.fact-src {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--muted);
  background: #fffdf8;
  border-top: 1px solid var(--line);
}

/* FAQ Accordion */
.faq {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  margin: 16px 0 28px;
  overflow: hidden;
}
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  padding: 15px 18px;
  font-weight: 750;
  font-size: 15px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  margin-right: 10px;
  color: var(--green);
  font-weight: 900;
}
.faq details[open] summary::before { content: "–"; }
.faq .fa {
  padding: 0 18px 16px 36px;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* Official Sources & Internal Mesh */
.sources {
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  background: #fff;
  border-radius: 13px;
  padding: 18px 20px;
  margin-top: 30px;
}
.sources h3 { margin: 0 0 8px; font-size: 17px; }
.src-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.src-row:last-child { border-bottom: 0; }
.src-row a { color: var(--green); font-weight: 750; }
.src-row a:hover { text-decoration: underline; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 36px;
}
@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 43, 36, 0.05);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}
.hub-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 10px;
}
.hub-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.hub-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.hub-go {
  color: var(--green);
  font-size: 13.5px;
  font-weight: 850;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f4efe5;
  padding: 36px 0 48px;
  color: var(--ink-2);
  font-size: 13px;
}
.footer-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 750;
}
.footer-links a:hover { text-decoration: underline; }
