@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;800&family=Merriweather:wght@700&display=swap');

:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --line: #e5e7eb;
  --accent: #b45309;
  --warn: #b91c1c;
  --radius: 16px;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at -5% -10%, #ddeef4, transparent 60%),
    radial-gradient(1200px 700px at 110% 0%, #fff0dd, transparent 55%),
    linear-gradient(180deg, var(--bg), #fff 72%);
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 16px 56px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  z-index: 10;
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(2px);
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.brand-title {
  margin: 0;
  font-family: 'Merriweather', serif;
  font-size: 28px;
  line-height: 1.25;
}

.brand-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.updated-badge {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid #d1fae5;
  background: #ecfdf5;
  color: #065f46;
  font-size: 12px;
  padding: 6px 10px;
}

.site-nav {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: #334155;
  background: #fff;
}

.site-nav a[aria-current="page"] {
  background: #ecfeff;
  border-color: #99f6e4;
  color: #0f766e;
  font-weight: 700;
}

.layout-grid {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-wrap {
  display: grid;
  gap: 12px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

input[type="number"],
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.inline-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn {
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  color: #fff;
  background: var(--primary);
}

.btn:hover {
  background: var(--primary-dark);
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.switch {
  width: 48px;
  height: 27px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: 0.2s ease;
}

.switch::after {
  content: "";
  width: 21px;
  height: 21px;
  border-radius: 50%;
  position: absolute;
  left: 3px;
  top: 3px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: 0.2s ease;
}

#includeTax:checked + .switch {
  background: var(--primary);
}

#includeTax:checked + .switch::after {
  transform: translateX(21px);
}

.warning {
  color: var(--warn);
  min-height: 18px;
  font-size: 12px;
}

.result-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.result-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #4b5563;
  font-size: 14px;
}

.result-line strong {
  color: var(--ink);
}

.result-total {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  color: var(--primary);
}

.note,
.notice-list li,
.content-card li,
.content-card p {
  font-size: 14px;
}

.note {
  color: var(--muted);
  margin-top: 10px;
}

.ad-panel {
  margin-top: 8px;
  border: 1px dashed #f59e0b;
  border-radius: 14px;
  padding: 12px;
  background: #fffbeb;
}

.ad-label {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.notice-list,
.faq-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.faq-item + .faq-item {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.faq-q {
  margin: 0;
  font-size: 16px;
}

.faq-a {
  margin: 6px 0 0;
  color: #374151;
  font-size: 14px;
}

.content-card h2,
.content-card h3 {
  line-height: 1.4;
}

.content-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.content-card h3 {
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 18px;
}

.content-card ul,
.content-card ol {
  padding-left: 18px;
}

.site-footer {
  margin-top: 16px;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

.policy-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}

@media (min-width: 900px) {
  .layout-grid.two-col {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}
