﻿@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700&display=swap");

:root {
  --paper: #f6f1e6;
  --ink: #1b2420;
  --muted: #5f6b66;
  --accent: #e76f51;
  --accent-2: #2a9d8f;
  --accent-3: #264653;
  --sun: #e9c46a;
  --card: #fff8ee;
  --stroke: rgba(38, 70, 83, 0.18);
  --shadow: 0 24px 60px rgba(16, 28, 25, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Serif KR", "Nanum Myeongjo", "Apple SD Gothic Neo", "Malgun Gothic", serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(233, 196, 106, 0.35), transparent 55%),
    radial-gradient(circle at 10% 20%, rgba(42, 157, 143, 0.25), transparent 50%),
    linear-gradient(140deg, #f9f3ea, #f2e7d7 55%, #f6f1e6);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 241, 230, 0.9);
  border-bottom: 1px solid rgba(38, 70, 83, 0.08);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.95rem;
}

.hero {
  padding: 70px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent-3);
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  margin: 12px 0 18px;
  line-height: 1.2;
}

.hero h1 span {
  display: block;
  color: var(--accent-3);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  margin-top: 6px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.tag {
  padding: 6px 12px;
  background: rgba(38, 70, 83, 0.12);
  border-radius: 999px;
  font-size: 0.85rem;
}

.hero-points {
  display: grid;
  gap: 14px;
}

.point {
  background: rgba(255, 248, 238, 0.7);
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(38, 70, 83, 0.12);
}

.point h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.generator-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid rgba(231, 111, 81, 0.2);
}

.generator-form {
  display: grid;
  gap: 18px;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  background: var(--accent-2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.type-select {
  border: 1px solid rgba(38, 70, 83, 0.2);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.radio {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
}

.radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

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

select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(38, 70, 83, 0.25);
  background: #fff;
  font-size: 0.95rem;
}

.btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(231, 111, 81, 0.3);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(38, 70, 83, 0.3);
  color: var(--accent-3);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hint {
  font-size: 0.9rem;
  color: var(--muted);
}

.results {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
}

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

.result-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(38, 70, 83, 0.15);
  display: grid;
  gap: 8px;
}

.result-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.number-set {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.number-pill {
  background: rgba(42, 157, 143, 0.15);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
}

.pension-code {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-3);
}

.section {
  padding: 60px 0;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.section.highlight {
  background: rgba(255, 248, 238, 0.7);
  border-top: 1px solid rgba(38, 70, 83, 0.08);
  border-bottom: 1px solid rgba(38, 70, 83, 0.08);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.step {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(38, 70, 83, 0.1);
}

.step-number {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(231, 111, 81, 0.15);
  color: var(--accent-3);
  font-weight: 700;
  font-size: 0.8rem;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(38, 70, 83, 0.1);
}

.card ul {
  padding-left: 18px;
  margin: 8px 0 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.info-card {
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(38, 70, 83, 0.1);
}

.notice {
  margin-top: 20px;
  padding: 16px;
  background: rgba(231, 111, 81, 0.12);
  border-radius: 12px;
  border: 1px solid rgba(231, 111, 81, 0.2);
  font-size: 0.95rem;
}

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

.history-item {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(38, 70, 83, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
}

.history-item strong {
  font-weight: 700;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(38, 70, 83, 0.12);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-cloud span {
  background: rgba(38, 70, 83, 0.12);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(38, 70, 83, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

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

.muted {
  color: var(--muted);
}

.page-header {
  padding: 70px 0 30px;
}

.page-header h1 {
  margin: 0 0 10px;
}

.page-content {
  padding: 0 0 60px;
}

.page-content h2 {
  margin-top: 30px;
}

.form-box {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(38, 70, 83, 0.12);
  display: grid;
  gap: 12px;
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(38, 70, 83, 0.2);
  font-size: 0.95rem;
  font-family: inherit;
}

.form-box textarea {
  min-height: 120px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

body.loaded .reveal {
  animation: rise 0.9s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 40px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  body.loaded .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

