:root {
  color-scheme: light;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.62;
  word-break: keep-all;
  background-image: radial-gradient(920px 340px at 50% -60px, rgba(37, 99, 235, 0.07), rgba(248, 250, 252, 0) 70%);
  background-repeat: no-repeat;
}

main,
.pack-footer {
  width: min(1020px, calc(100% - 32px));
  margin: 18px auto;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.45rem, 3.6vw, 1.95rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  color: #0f172a;
}

h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: #0f172a;
}

h3 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: #0f172a;
}

h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1e293b;
}

a {
  color: #1d4ed8;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

button,
.button,
summary,
.section-nav a,
.form-download-btn {
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

button,
.button {
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
}

button:hover,
.button:hover {
  background: #1d4ed8;
}

button:disabled {
  background: #e2e8f0;
  color: #64748b;
  border-color: #cbd5e1;
  cursor: not-allowed;
}

.btn-secondary {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.84rem;
  min-height: 42px;
  padding: 8px 14px;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-violet {
  border-color: #6d28d9;
  background: #6d28d9;
}

.btn-violet:hover {
  background: #5b21b6;
}

.button,
.form-download-btn,
.section-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero-card {
  padding: clamp(18px, 2.8vw, 24px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 4px 12px rgba(15, 23, 42, 0.02);
  margin-bottom: 14px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pill-brand {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.pill-emerald {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.pill-neutral {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.hero-lead {
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 12px;
}

.howto-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.howto-strip span {
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.82rem;
  font-weight: 600;
}

.howto-strip strong {
  display: block;
  font-weight: 800;
  color: #1d4ed8;
}

@media (max-width: 720px) {
  .howto-strip {
    grid-template-columns: 1fr;
  }
}

.trust-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 16px;
}

.trust-bar p {
  margin: 0;
  font-size: 0.87rem;
  color: #334155;
}

.trust-icon {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.section-nav a {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.section-nav a:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* Cards & Sections */
.card {
  padding: clamp(20px, 3.8vw, 30px);
  margin: 18px 0;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 4px 12px rgba(15, 23, 42, 0.02);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.section-badge {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.badge-free {
  background: #eff6ff;
  color: #1d4ed8;
}

.badge-paid {
  background: #f5f3ff;
  color: #6d28d9;
}

.section-desc {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 18px;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: grid;
  gap: 8px;
}

.timeline li {
  margin: 0;
  padding: 13px 16px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #93c5fd;
  border-radius: 10px;
  background: #f8fafc;
}

.timeline-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.step-when {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.step-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}

.tag-law {
  background: #eff6ff;
  color: #1d4ed8;
}

.tag-school {
  background: #f1f5f9;
  color: #475569;
}

.step-body {
  margin: 0;
  font-size: 0.92rem;
  color: #1e293b;
}

.step-cite {
  font-size: 0.84rem;
  color: #475569;
}

.step-sub {
  font-size: 0.83rem;
  color: #64748b;
}

/* Calculator Box */
.calc-box {
  padding: clamp(16px, 3.2vw, 22px);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 14px;
}

.calc-help {
  font-size: 0.86rem;
  color: #475569;
  margin-bottom: 14px;
}

.calc-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.calc-input-group {
  flex: 1 1 220px;
  min-width: 0;
}

.calc-input-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}

.label-hint {
  font-weight: 600;
  color: #64748b;
}

input[type="date"] {
  display: block;
  width: 100%;
  max-width: 280px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
}

#deadlines h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
}

.deadline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.deadline-card {
  margin: 0;
  padding: 15px 17px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #2563eb;
  border-radius: 12px;
  display: grid;
  gap: 4px;
}

.deadline-card[data-offset="29"] {
  border-left-color: #4f46e5;
}

.deadline-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.deadline-card__label {
  font-size: 0.84rem;
  font-weight: 800;
  color: #334155;
}

.deadline-card__dday {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
}

.deadline-card[data-offset="29"] .deadline-card__dday {
  background: #eef2ff;
  color: #4338ca;
}

.deadline-card__date {
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.25;
}

.deadline-card__meta {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.calc-footnote {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.calc-footnote p {
  margin: 0;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.55;
}

.calc-footnote p + p {
  margin-top: 4px;
}

/* Tags */
.tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid;
  border-radius: 4px;
  padding: 0 5px;
  line-height: 1.45;
}

.fixed {
  color: #1e3a8a;
  background: #dbeafe;
  border-color: #93c5fd;
}

.edit {
  color: #713f12;
  background: #fef08a;
  border-color: #eab308;
}

.check {
  color: #6b21a8;
  background: #f3e8ff;
  border-color: #d8b4fe;
}

/* Checklist */
.checklist-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}

.progress-pill.is-complete {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.checklist {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checklist li {
  margin: 0;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.checklist label:hover {
  border-color: #93c5fd;
  background: #ffffff;
}

.checklist label:has(input:checked) {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.checklist label:has(input:checked) span {
  text-decoration: line-through;
  opacity: 0.85;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #059669;
}

/* Paid Preview Showcase */
.paid {
  border-color: #ddd6fe;
  background: linear-gradient(180deg, #fcfaff 0%, #ffffff 120px);
}

.paid-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.paid-safe-note {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

#paidPreview {
  margin-top: 18px;
}

#paidPreview > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
  color: #4c1d95;
}

#paidPreview > summary::-webkit-details-marker {
  display: none;
}

#paidPreview > summary::after {
  content: "▾";
  font-size: 1rem;
}

#paidPreview[open] > summary::after {
  content: "▴";
}

.preview-body {
  padding-top: 16px;
}

.legend {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 20px;
}

.legend-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 6px;
}

.legend-hint {
  font-weight: 600;
  color: #64748b;
  font-size: 0.78rem;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
  color: #475569;
}

.preview-section {
  margin: 24px 0 0 0;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.preview-section--first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.suggest-box {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.suggest-box__copy strong {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.suggest-box__copy p {
  margin: 0;
}

.sub-note {
  font-size: 0.86rem;
  color: #475569;
  margin-bottom: 12px;
}

.draft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.draft-card {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.draft-card h3 {
  font-size: 0.96rem;
  margin: 0;
}

pre {
  margin: 0;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #334155;
  flex: 1;
}

.draft-card p[role="status"] {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #047857;
}

textarea {
  width: 100%;
  min-height: 160px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-size: 0.82rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 680px) {
  .form-card-grid {
    grid-template-columns: 1fr;
  }
}

.form-download-card {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-download-card__title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
}

.form-download-card__meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin: -2px 0 2px;
}

.form-download-card__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-download-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 8px 13px;
}

.form-download-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.form-download-btn--hwp {
  border-color: #1d4ed8;
  background: #2563eb;
  color: #ffffff;
  flex: 1 1 auto;
}

.form-download-btn--hwp:hover {
  border-color: #1e40af;
  background: #1d4ed8;
  color: #ffffff;
}

.form-download-btn--docx {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.pending-box {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.84rem;
  color: #475569;
}

.pending-box p {
  margin: 4px 0 0 0;
}

/* Examples */
.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.example {
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.example p {
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.example-quote {
  padding: 8px 10px;
  background: #ffffff;
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
  color: #1e293b;
}

.fiction {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.74rem !important;
  font-weight: 800;
  margin-bottom: 8px !important;
}

.compare-list {
  margin: 8px 0 0 0;
  padding-left: 20px;
  font-size: 0.88rem;
}

.compare-list li {
  margin: 10px 0;
}

.bad-label,
.good-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
}

.bad-label {
  background: #fee2e2;
  color: #991b1b;
}

.good-label {
  background: #dcfce7;
  color: #166534;
}

/* Sources */
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.source {
  padding: 15px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.source-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.source-top h3 {
  font-size: 0.95rem;
  margin: 0;
}

.source p {
  font-size: 0.86rem;
  color: #334155;
  margin: 0;
}

.source-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #64748b;
}

.status-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.chip-verified {
  background: #dcfce7;
  color: #166534;
}

.chip-neutral {
  background: #e2e8f0;
  color: #334155;
}

.chip-pending {
  background: #f3e8ff;
  color: #6b21a8;
}

/* Footer */
.pack-footer {
  padding: 16px 0 28px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

.pack-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.pack-footer p {
  margin: 0;
}

.skip {
  position: absolute;
  top: -100px;
}

.skip:focus {
  top: 8px;
  left: 8px;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 100;
}

:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .section-nav a {
    min-height: 40px;
    padding: 7px 6px;
    font-size: 0.78rem;
  }

  .deadline-grid,
  .checklist,
  .draft-grid,
  .example-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  input[type="date"] {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .calc-controls button,
  .paid-cta-row .button,
  .suggest-box .button,
  .form-download-btn {
    width: 100%;
  }
}

@media print {
  header,
  .section-nav,
  button,
  .button,
  #paid,
  .no-print-pack,
  .pack-footer {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  .card,
  .hero-card {
    break-inside: avoid;
    border: 1px solid #cbd5e1;
    box-shadow: none;
  }
}
