/* ============================================================
   지니판 홈페이지(zinipan.com) 공용 스타일
   토큰 근거: desktop/ui/app/globals.css (디자인 가이드 v2)
   원칙: 흰 화면 + 최소 포인트 · 그라디언트는 히어로·주 CTA 전용
   ============================================================ */

@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("fonts/PretendardVariable.woff2") format("woff2-variations");
}
@font-face {
  font-family: "SUIT Variable";
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/SUIT-Variable.woff2") format("woff2-variations");
}

:root {
  --background: 210 50% 98%;
  --foreground: 216 30% 18%;
  --card: 0 0% 100%;
  --muted: 210 40% 95%;
  --muted-foreground: 214 16% 50%;
  --primary: 335 85% 60%;
  --accent: 335 88% 95%;
  --accent-foreground: 335 68% 44%;
  --border: 335 28% 90%;
  --grad-logo: linear-gradient(135deg, #fbbf24 0%, #f59e0b 28%, #ec4899 62%, #4f46e5 100%);
  --grad-text: linear-gradient(108deg, hsl(36 96% 52%) 0%, hsl(26 94% 53%) 13%, hsl(14 90% 55%) 26%, hsl(2 86% 56%) 37%, hsl(348 84% 56%) 47%, hsl(332 82% 56%) 57%, hsl(312 74% 55%) 67%, hsl(288 72% 54%) 77%, hsl(262 78% 52%) 88%, hsl(224 90% 48%) 100%);
  --grad-line: linear-gradient(115deg, hsl(42 96% 62%) 0%, hsl(30 94% 62%) 13%, hsl(16 90% 63%) 26%, hsl(2 88% 64%) 37%, hsl(348 86% 64%) 47%, hsl(332 84% 64%) 57%, hsl(312 78% 64%) 67%, hsl(288 76% 64%) 77%, hsl(262 82% 62%) 88%, hsl(222 92% 58%) 100%);
  --grad-fill: linear-gradient(130deg, hsl(42 96% 58%) 0%, hsl(30 94% 58%) 13%, hsl(16 90% 59%) 26%, hsl(2 88% 60%) 37%, hsl(348 86% 60%) 47%, hsl(332 84% 60%) 57%, hsl(312 78% 60%) 67%, hsl(288 76% 59%) 77%, hsl(262 82% 57%) 88%, hsl(222 92% 52%) 100%);
  --hero-glow:
    radial-gradient(130% 100% at 4% -14%, hsl(34 100% 87%), transparent 60%),
    radial-gradient(120% 94% at 28% -14%, hsl(2 90% 93%), transparent 58%),
    radial-gradient(115% 90% at 54% -16%, hsl(322 88% 94%), transparent 56%),
    radial-gradient(125% 96% at 78% -12%, hsl(268 85% 95%), transparent 58%),
    radial-gradient(140% 106% at 98% -6%, hsl(214 100% 90%), transparent 64%);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "SUIT Variable", SUIT, "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 헤더 — 흰 반투명 + 하단 2px 그라디언트 라인 (앱 타이틀바 계승) ── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(0 0% 100% / 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--grad-line);
}
.header-inner {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand .logo {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--grad-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand .wordmark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.035em;
  color: hsl(216 32% 22%);
}
.gnb {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gnb a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 19px;
  font-size: 13.5px;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}
.gnb a:hover {
  background: hsl(var(--muted));
}
.gnb a.active {
  background: hsl(335 88% 95%);
  color: hsl(335 66% 44%);
  font-weight: 700;
}
.grow {
  flex: 1;
}

/* ── 버튼 ── */
.btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 21px;
  border: none;
  background: var(--grad-fill);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 9px 20px -6px hsl(330 88% 55% / 0.6);
}
.btn-fill.lg {
  height: 52px;
  padding: 0 30px;
  border-radius: 26px;
  font-size: 15.5px;
}
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 21px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--foreground));
  cursor: pointer;
}
.btn-line.lg {
  height: 52px;
  padding: 0 28px;
  border-radius: 26px;
  font-size: 15.5px;
}
.btn-line:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--accent-foreground));
}

/* ── 히어로 (그라디언트·글로우는 여기 전용) ── */
.hero {
  background: var(--hero-glow), linear-gradient(180deg, hsl(28 80% 97.5%), hsl(var(--background)));
  padding: 92px 0 76px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.hero h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: clamp(15px, 2.2vw, 17px);
  color: hsl(216 20% 34%);
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 13px;
  font-size: 12.5px;
  color: hsl(var(--muted-foreground));
}

.hero-chips {
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  max-width: 760px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 15px;
  border-radius: 17px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  font-size: 12.5px;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

/* ── 섹션 공통 ── */
.section {
  padding: 74px 0;
}
.section.alt {
  background: hsl(var(--card));
  border-top: 1px solid hsl(28 14% 93%);
  border-bottom: 1px solid hsl(28 14% 93%);
}
.sec-label {
  font-size: 13px;
  font-weight: 800;
  color: hsl(var(--accent-foreground));
  letter-spacing: 0.02em;
}
.sec-title {
  margin: 8px 0 0;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.35;
}
.sec-sub {
  margin: 12px 0 0;
  max-width: 640px;
  color: hsl(216 16% 40%);
}
.center {
  text-align: center;
}
.center .sec-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ── 카드 — 테두리만, 그림자·그라디언트 없음 ── */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 24px 26px;
}
.card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.card p {
  margin: 9px 0 0;
  font-size: 13.5px;
  color: hsl(216 16% 42%);
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

/* 비교 카드 (사람이 쓰는 도구 vs 도구를 쓰는 AI) */
.vs-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
}
.vs-tag.old {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}
.vs-tag.new {
  background: hsl(335 88% 95%);
  color: hsl(335 68% 44%);
}
.vs-card li {
  margin-top: 7px;
  font-size: 13.5px;
  color: hsl(216 16% 42%);
}
.vs-card.now {
  border-color: hsl(var(--primary));
}
.vs-card h3 {
  margin-top: 13px;
}
.vs-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

/* 일곱 가지 일 — 번호 스텝 카드 */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: hsl(335 88% 95%);
  color: hsl(335 68% 44%);
  font-size: 13.5px;
  font-weight: 800;
  flex: none;
}
.step-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-card .body h3 {
  font-size: 15px;
}
.step-card .body p {
  font-size: 13px;
}

/* FAQ */
.faq {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 0;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: "Q";
  color: hsl(var(--accent-foreground));
  font-weight: 800;
  flex: none;
}
.faq details p {
  margin: 0;
  padding: 0 0 18px 24px;
  font-size: 13.5px;
  color: hsl(216 16% 42%);
}

/* 요금제 */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 38px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.best {
  border: 1.5px solid hsl(var(--primary));
}
.plan .best-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  height: 26px;
  padding: 0 13px;
  border-radius: 13px;
  background: hsl(var(--primary));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.plan .p-name {
  font-size: 14px;
  font-weight: 800;
}
.plan .p-desc {
  margin-top: 4px;
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}
.plan .p-price {
  margin-top: 16px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan .p-price small {
  font-size: 13px;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
}
.plan .p-per {
  margin-top: 3px;
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}
.plan ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.plan li {
  font-size: 13px;
  color: hsl(216 16% 42%);
  padding: 5px 0 5px 20px;
  position: relative;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: hsl(var(--accent-foreground));
  font-weight: 800;
}
.plan .p-cta {
  margin-top: 18px;
}
.notice {
  margin-top: 26px;
  background: hsl(var(--accent));
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 13px;
  color: hsl(335 50% 36%);
}
.terms {
  margin-top: 26px;
}
.terms li {
  margin-top: 6px;
  font-size: 13px;
  color: hsl(216 16% 42%);
}

/* 다운로드 */
.dl-panel {
  margin-top: 38px;
  text-align: center;
  padding: 44px 30px;
}
.dl-meta {
  margin-top: 14px;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}
.dl-steps {
  counter-reset: dlstep;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dl-steps li {
  counter-increment: dlstep;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 22px 24px;
  font-size: 13.5px;
  color: hsl(216 16% 42%);
}
.dl-steps li strong {
  display: block;
  color: hsl(var(--foreground));
  font-size: 15px;
  margin-bottom: 7px;
}
.dl-steps li strong::before {
  content: counter(dlstep) ". ";
  color: hsl(var(--accent-foreground));
}
.spec-table {
  margin-top: 34px;
  width: 100%;
  border-collapse: collapse;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  overflow: hidden;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 13px 20px;
  font-size: 13.5px;
  border-top: 1px solid hsl(28 14% 93%);
}
.spec-table tr:first-child th,
.spec-table tr:first-child td {
  border-top: none;
}
.spec-table th {
  width: 180px;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
  background: hsl(210 40% 98%);
}

/* CTA 밴드 */
.cta-band {
  text-align: center;
  padding: 80px 0;
  background: var(--hero-glow), linear-gradient(180deg, hsl(28 80% 97.5%), hsl(var(--background)));
}
.cta-band h2 {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.cta-band p {
  margin: 12px 0 0;
  color: hsl(216 16% 40%);
}
.cta-band .hero-cta {
  margin-top: 28px;
}

/* 푸터 */
.footer {
  border-top: 1px solid hsl(28 14% 93%);
  padding: 34px 0 44px;
  background: hsl(var(--card));
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: hsl(var(--muted-foreground));
}
.footer-inner .brand .wordmark {
  font-size: 16px;
}
.footer-inner .brand .logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.footer a:hover {
  color: hsl(var(--accent-foreground));
}

/* ── 반응형 ── */
@media (max-width: 900px) {
  .grid3,
  .grid4,
  .plan-grid,
  .dl-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .header-inner {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 10px;
  }
  .gnb {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
  .gnb a {
    height: 34px;
    padding: 0 13px;
    font-size: 13px;
    flex: none;
  }
  .hero {
    padding: 56px 0 50px;
  }
  .section {
    padding: 52px 0;
  }
  .grid2,
  .grid3,
  .grid4,
  .plan-grid,
  .dl-steps {
    grid-template-columns: 1fr;
  }
  .plan.best {
    order: -1;
  }
  .spec-table th {
    width: 120px;
  }
}
