/*
 * 운쏠 랜딩 페이지 — Figma 마케팅 톤 (Inter + 흑백 + 파스텔 컬러블록 + Pill)
 *
 * Design Ref: docs/02-design/styles/toss-merchant-prep.design-anchor.md
 * Plan SC: SC-1 푸터 6개 사업자 정보 + Figma 톤 미니멀 디자인
 */

/* ────────────────────────────────────────────────────────────
   디자인 토큰 (CSS variables)
   ──────────────────────────────────────────────────────────── */
:root {
  /* 코어 */
  --primary: #000000;
  --canvas: #ffffff;
  --ink: #000000;
  --inverse-canvas: #000000;
  --inverse-ink: #ffffff;
  --surface-soft: #f5f5f5;
  --hairline: #e5e5e5;
  --hairline-soft: #f0f0f0;
  --accent-magenta: #ff3d8e;

  /* 컬러블록 (오행 매핑) */
  --block-mint:   #d8f5e3;   /* 목 — 잠재력 */
  --block-lime:   #e5f5c7;
  --block-coral:  #ffd1c2;   /* 화 — 강점 */
  --block-pink:   #ffd9e8;
  --block-cream:  #fff4d6;   /* 토 — 안정·가치 */
  --block-lilac:  #e5d9ff;
  --block-navy:   #1a2a4f;   /* 수 — 깊이·신뢰 */

  /* 시맨틱 */
  --success: #22c55e;
  --overlay-scrim: rgba(0, 0, 0, 0.6);

  /* 폰트 */
  --font-sans: 'Inter', 'Pretendard', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'D2Coding', monospace;

  /* 스페이싱 */
  --space-hair: 1px;
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 96px;

  /* Radius */
  --rounded-xs: 2px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 24px;
  --rounded-xl: 32px;
  --rounded-pill: 50px;
  --rounded-full: 9999px;
}

/* ────────────────────────────────────────────────────────────
   Reset + Base
   ──────────────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: 'kern' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  font-weight: 320;
  line-height: 1.55;
}
ul, ol, dl { list-style: none; }
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ────────────────────────────────────────────────────────────
   Container + Layout
   ──────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xxl);
}
@media (max-width: 767px) {
  .container { padding: 0 var(--space-md); }
}

section {
  padding: var(--space-section) 0;
}
@media (max-width: 767px) {
  section { padding: var(--space-xxl) 0; }
}

/* ────────────────────────────────────────────────────────────
   Typography (Design Anchor §3)
   ──────────────────────────────────────────────────────────── */
.display-xl {
  font-size: 72px;
  font-weight: 340;
  line-height: 1.00;
  letter-spacing: -1.72px;
}
.display-lg {
  font-size: 56px;
  font-weight: 340;
  line-height: 1.10;
  letter-spacing: -0.96px;
}
.headline {
  font-size: 26px;
  font-weight: 540;
  line-height: 1.35;
  letter-spacing: -0.26px;
}
.subhead {
  font-size: 22px;
  font-weight: 340;
  line-height: 1.40;
  letter-spacing: -0.20px;
}
.card-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}
.body-lg {
  font-size: 19px;
  font-weight: 330;
  line-height: 1.50;
  letter-spacing: -0.14px;
}
.body {
  font-size: 17px;
  font-weight: 320;
  line-height: 1.55;
  letter-spacing: -0.16px;
}
.body-sm {
  font-size: 15px;
  font-weight: 330;
  line-height: 1.50;
  letter-spacing: -0.14px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.30;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--ink);
}
.caption {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.40;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .display-xl { font-size: 48px; letter-spacing: -1.0px; }
  .display-lg { font-size: 36px; letter-spacing: -0.6px; }
}

/* ────────────────────────────────────────────────────────────
   Buttons (Pill 50px)
   ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-size: 17px;
  font-weight: 480;
  line-height: 1.4;
  letter-spacing: -0.10px;
  padding: 10px 20px;
  border-radius: var(--rounded-pill);
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--canvas);
}
.btn-secondary {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
  padding: 8px 18px 10px;
}
.btn-lg {
  font-size: 19px;
  padding: 14px 28px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 0.9; }

/* ────────────────────────────────────────────────────────────
   Top Nav
   ──────────────────────────────────────────────────────────── */
.top-nav {
  position: sticky;
  top: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.nav-actions {
  display: flex;
  gap: var(--space-xs);
}

/* ────────────────────────────────────────────────────────────
   Hero
   ──────────────────────────────────────────────────────────── */
.hero {
  padding: var(--space-section) 0 calc(var(--space-section) * 1.2);
  text-align: left;
}
.hero h1 { margin: var(--space-lg) 0; }
.hero .subhead { margin-bottom: var(--space-xl); max-width: 600px; }
.hero-cta { margin-top: var(--space-xl); }

/* ────────────────────────────────────────────────────────────
   Color Blocks (signature)
   ──────────────────────────────────────────────────────────── */
.color-block {
  border-radius: var(--rounded-lg);
  padding: var(--space-xxl);
  margin: 0 0 var(--space-section);
}
.color-block-mint  { background: var(--block-mint);  color: var(--ink); }
.color-block-lime  { background: var(--block-lime);  color: var(--ink); }
.color-block-coral { background: var(--block-coral); color: var(--ink); }
.color-block-pink  { background: var(--block-pink);  color: var(--ink); }
.color-block-cream { background: var(--block-cream); color: var(--ink); }
.color-block-lilac { background: var(--block-lilac); color: var(--ink); }
.color-block-navy  { background: var(--block-navy);  color: var(--inverse-ink); }
.color-block-navy .eyebrow { color: var(--inverse-ink); }
.color-block .headline { margin-bottom: var(--space-lg); }

@media (max-width: 767px) {
  .color-block { padding: var(--space-xl); border-radius: 0; margin-left: calc(-1 * var(--space-md)); margin-right: calc(-1 * var(--space-md)); }
}

/* ────────────────────────────────────────────────────────────
   Section: 9 SECTIONS LIST (mint)
   ──────────────────────────────────────────────────────────── */
.section-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg) var(--space-xl);
  margin-top: var(--space-xl);
}
.section-list li {
  font-size: 17px;
  font-weight: 330;
}
.section-list strong {
  font-family: var(--font-mono);
  font-weight: 500;
  margin-right: var(--space-xs);
}
@media (max-width: 767px) {
  .section-list { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────────────────
   Product Card (cream block)
   ──────────────────────────────────────────────────────────── */
.product-card .price {
  margin: var(--space-md) 0 var(--space-lg);
}
.product-card .body-lg {
  margin-bottom: var(--space-lg);
  max-width: 600px;
}
.product-features {
  margin-bottom: var(--space-xl);
}
.product-features li {
  font-size: 17px;
  font-weight: 330;
  padding: var(--space-xs) 0;
}

/* ────────────────────────────────────────────────────────────
   Why Grid (navy block)
   ──────────────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.why-grid h3 { margin-bottom: var(--space-sm); }
@media (max-width: 767px) {
  .why-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* ────────────────────────────────────────────────────────────
   Footer (사업자 정보 6개 — 심사 통과 필수)
   ──────────────────────────────────────────────────────────── */
.footer {
  padding: var(--space-section) 0 var(--space-xxl);
  border-top: 1px solid var(--hairline-soft);
  background: var(--canvas);
}
.footer-logo {
  font-size: 32px;
  font-weight: 540;
  letter-spacing: -0.6px;
  margin-bottom: var(--space-lg);
}
.footer-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin-bottom: var(--space-lg);
}
.biz-info { margin-bottom: var(--space-xxl); }
.biz-info dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-md);
  font-size: 15px;
  font-weight: 330;
}
.biz-info dt {
  color: var(--ink);
  font-weight: 500;
}
.biz-info dd {
  color: var(--ink);
  font-weight: 330;
}
.copyright {
  color: var(--ink);
  opacity: 0.6;
}
@media (max-width: 767px) {
  .biz-info dl { grid-template-columns: 1fr; gap: var(--space-xs); }
  .biz-info dt { margin-top: var(--space-sm); }
}

/* ────────────────────────────────────────────────────────────
   Form Modal (명식 입력)
   ──────────────────────────────────────────────────────────── */
.modal {
  border: none;
  border-radius: var(--rounded-lg);
  padding: 0;
  max-width: 480px;
  width: 92%;
  background: var(--canvas);
}
.modal::backdrop {
  background: var(--overlay-scrim);
}
.modal-content {
  padding: var(--space-xxl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.modal-content .card-title { margin-bottom: var(--space-md); }

.form-field { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-field-group {
  border: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.label-text {
  font-size: 15px;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field-group input {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 12px 14px;
  font-size: 17px;
  font-weight: 320;
  font-family: var(--font-sans);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.birth-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-xs);
}
.birth-grid input {
  padding: 10px 8px;
  font-size: 15px;
  text-align: center;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.form-error {
  color: var(--accent-magenta);
  font-size: 14px;
  font-weight: 500;
  margin-top: var(--space-sm);
}

@media (max-width: 480px) {
  .modal-content { padding: var(--space-xl); }
  .birth-grid { grid-template-columns: repeat(2, 1fr); }
}
