/* ========================================
   휴대폰 소액결제 현금화 — Design System
   ======================================== */
:root {
  --ink: #0f1f1a;
  --ink-soft: #2a3f36;
  --muted: #5a6e64;
  --paper: #f3f7f4;
  --paper-2: #e8f0eb;
  --brand: #0b3d2e;
  --brand-mid: #1a6b4a;
  --brand-light: #2d9a6a;
  --accent: #c9a227;
  --accent-bright: #e8c547;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --line: rgba(15, 31, 26, 0.12);
  --shadow: 0 18px 50px rgba(11, 61, 46, 0.12);
  --radius: 4px;
  --max: 1120px;
  --font-display: "Black Han Sans", "Noto Sans KR", sans-serif;
  --font-body: "Pretendard", "Noto Sans KR", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(45, 154, 106, 0.14), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(201, 162, 39, 0.12), transparent 55%),
    linear-gradient(180deg, #f7faf8 0%, var(--paper) 40%, #eef4f0 100%);
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 247, 244, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  background: var(--brand);
  color: #fff !important;
  border-radius: var(--radius);
  text-decoration: none !important;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f5faf7;
  background:
    linear-gradient(115deg, rgba(8, 36, 27, 0.92) 0%, rgba(11, 61, 46, 0.78) 48%, rgba(15, 70, 48, 0.55) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(232, 197, 71, 0.25), transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #0b3d2e, #145c42 45%, #0a2e23);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% 40%;
  height: 70%;
  background:
    radial-gradient(circle at 30% 40%, rgba(232, 197, 71, 0.35), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(45, 154, 106, 0.4), transparent 50%);
  filter: blur(2px);
  pointer-events: none;
  animation: drift 14s var(--ease) infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, -3%, 0) scale(1.06); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 7rem 0 4.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.1rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-brand em {
  font-style: normal;
  color: var(--accent-bright);
}

.hero h1 {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  max-width: 34ch;
  margin-bottom: 0.75rem;
  animation: rise 0.9s var(--ease) 0.1s both;
}

.hero-lead {
  max-width: 42ch;
  color: rgba(245, 250, 247, 0.86);
  margin-bottom: 1.75rem;
  animation: rise 0.9s var(--ease) 0.18s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s var(--ease) 0.26s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-bright);
  color: var(--ink) !important;
}

.btn-ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ---- Sections ---- */
.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.section-head p {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-mid);
  margin-bottom: 0.5rem;
}

/* ---- Content blocks ---- */
.prose {
  max-width: 70ch;
}

.prose h2,
.prose h3 {
  color: var(--brand);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.prose h2 {
  font-family: var(--font-body);
  font-size: 1.65rem;
  font-weight: 600;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.prose strong {
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.panel h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--brand);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.2rem;
  background: rgba(255, 255, 255, 0.7);
  border-left: 3px solid var(--brand-mid);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--brand);
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

th {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

tr:nth-child(even) td {
  background: rgba(232, 240, 235, 0.45);
}

/* ---- FAQ ---- */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--brand);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

/* ---- Callout / Alert ---- */
.callout {
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(232, 197, 71, 0.15);
  margin: 1.25rem 0;
}

.callout-danger {
  border-left-color: var(--danger);
  background: var(--danger-bg);
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

/* ---- Keyword chips (footer SEO, not hero clutter) ---- */
.keyword-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.keyword-links a {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

/* ---- CTA band ---- */
.cta-band {
  background:
    linear-gradient(120deg, var(--brand) 0%, #145c42 55%, #0b3d2e 100%);
  color: #fff;
  padding: 3.5rem 0;
}

.cta-band h2 {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 40rem;
  margin-bottom: 1.25rem;
}

/* ---- Page hero (inner) ---- */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11, 61, 46, 0.06), transparent);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 50ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* ---- Footer ---- */
.site-footer {
  background: #0a241c;
  color: rgba(245, 250, 247, 0.78);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(245, 250, 247, 0.78);
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--accent-bright);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-note {
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.75;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---- Reveal motion ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .hero-inner {
    padding-top: 5.5rem;
  }
}

/* ---- Kakao consult ---- */
.btn-kakao,
.nav-kakao {
  background: #fee500 !important;
  color: #191600 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(254, 229, 0, 0.45);
}

.btn-kakao:hover,
.nav-kakao:hover {
  background: #ffe033 !important;
  color: #191600 !important;
  transform: translateY(-2px);
}

.nav-kakao {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-kakao::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23191600' d='M12 3C6.48 3 2 6.58 2 11c0 2.76 1.78 5.21 4.52 6.7-.2.74-.72 2.67-.82 3.1-.13.55.2.54.42.39.17-.12 2.68-1.82 3.77-2.55.65.1 1.32.16 2.11.16 5.52 0 10-3.58 10-8s-4.48-8-10-8z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.kakao-consult-float {
  position: fixed;
  z-index: 90;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  pointer-events: none;
}

.kakao-consult-float .kakao-consult-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.65rem 1.15rem 0.65rem 0.85rem;
  background: #fee500;
  color: #191600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid rgba(25, 22, 0, 0.12);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.18),
    0 0 0 4px rgba(254, 229, 0, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease;
  max-width: min(calc(100vw - 2rem), 20rem);
}

.kakao-consult-float .kakao-consult-btn:hover {
  background: #ffe033;
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.22),
    0 0 0 5px rgba(254, 229, 0, 0.45);
}

.kakao-consult-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: rgba(25, 22, 0, 0.08);
  border-radius: 50%;
}

.kakao-consult-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.kakao-consult-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  text-align: left;
}

.kakao-consult-text strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.kakao-consult-text small {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.75;
  margin-top: 0.15rem;
}

@media (max-width: 640px) {
  body.has-kakao-bar {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }

  .kakao-consult-float {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.55rem 0.85rem calc(0.55rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95) 24%);
    pointer-events: none;
  }

  .kakao-consult-float .kakao-consult-btn {
    width: 100%;
    max-width: none;
    min-height: 3.5rem;
    justify-content: center;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
  }

  .kakao-consult-text {
    align-items: center;
    text-align: center;
  }

  .kakao-consult-text strong {
    font-size: 1.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
