/* nvue.co.kr 랜딩 — Figma "3. 랜딩페이지 디자인 / 엔뷰_랜딩페이지_260923_V02"(2495:7836).
   2026-10-05 2차: Figma MCP 디자인 컨텍스트(타이포·색·간격) + 노드 메타데이터(좌표·크기) 기준.
   토큰은 front/src/index.css(2026-10 디자인 시스템)를 미러링한다. 시안 폭 1920, 콘텐츠 1280.
   글자 간격은 전 텍스트 -0.025em(시안: 72→-1.8px, 48→-1.2px, 20→-0.5px …), 행간 1.4. */

:root {
  --surface: #ffffff;
  --surface-subtle: #fafafc; /* Background/400 — 기능·학습 흐름 */
  --hero-bg: #ebf6ff;
  --faq-bg: #f3f8ff;
  --faq-chip: #ebf0f7;
  --devices-bg: #4e8df2;
  --border: #e5e5ec; /* Border/800 */
  --border-card: #dadae4; /* Border/900 — 카드·버튼 테두리 */
  --text: #222222;
  --text-strong: #334155;
  --text-muted: #64748b;
  --text-subtle: #899bad;
  --brand-primary: #131949;
  --brand-primary-strong: #0c1032;
  --brand-strong: #131949; /* legal 페이지 인용 블록(구 변수명 유지) */
  --brand-accent: #3d74ff;
  --brand-600: #526b85;
  --point-mint: #86e1e1;
  --footer-text: #a6a8ba;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-card: 20px 30px 40px rgb(19 25 73 / 0.08);
  --container: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.container--narrow {
  width: min(860px, calc(100% - 40px));
}

/* ---------- Buttons (Figma Component 42/43: r8 · px16 py12 · gap4 · 20px chevron) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn--primary {
  background: var(--brand-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-primary-strong);
}

.btn--outline {
  background: var(--surface);
  border-color: var(--border-card);
  color: var(--brand-primary);
}

.btn--outline:hover {
  border-color: var(--brand-primary);
}

/* 네비 버튼(16 SemiBold) — 약관 페이지의 "서비스 바로가기"(btn--light)도 동일. */
.btn--sm,
.btn--light {
  font-size: 16px;
  font-weight: 600;
}

.btn--light {
  background: var(--brand-primary);
  color: #fff;
}

.btn--light:hover {
  background: var(--brand-primary-strong);
}

/* 구독 CTA — h58 · 24 Bold */
.btn--xl {
  width: 100%;
  font-size: 24px;
  font-weight: 700;
}

/* ---------- Nav (h84 · 흰 배경 · 로고 98×44 · 링크 18 Bold · gap 70) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 70px;
  height: 84px;
}

.nav__brand {
  display: flex;
  align-items: center;
  flex: none;
}

.nav__brand img {
  /* 로고 시안 8(한글 워드마크만, 네이비) — 468×196 비율, 높이 44 기준(2026-10-05). */
  width: 105px;
  height: 44px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  gap: 40px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-primary);
}

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

.nav__cta {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

/* ---------- Hero (Frame 1: 1920×1080 · 카피 548 @ x200,y367 · 일러스트 727×598 @ x993,y234) ---------- */
.hero {
  background: var(--hero-bg);
  overflow: hidden;
}

.hero__inner {
  width: min(1520px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 548px) minmax(0, 727px);
  justify-content: space-between;
  align-items: start;
  min-height: 996px;
  padding-top: 150px;
}

.hero__copy {
  margin-top: 133px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--brand-primary);
}

.hero h1 .accent {
  color: var(--brand-accent);
}

.hero__lead {
  margin-top: 20px;
  padding: 0 8px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding: 0 4px;
}

.hero__art {
  width: 727px;
  max-width: 100%;
  height: auto;
}

/* ---------- Section 공통 (제목 48 ExtraBold · 부제 24 Medium · 간격 20) ---------- */
.section__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  text-align: center;
}

.section__sub {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-strong);
  text-align: center;
}

/* ---------- 구독 (Frame 2147234820: 1920×823 · 콘텐츠 y160 · 카드 580×503) ---------- */
.plan {
  padding: 160px 0;
}

.plan__inner {
  display: grid;
  grid-template-columns: minmax(0, 648px) minmax(0, 580px);
  justify-content: space-between;
  align-items: center;
  gap: 52px;
}

.plan__copy h2 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
}

.plan__copy p {
  margin-top: 24px;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-strong);
}

.plan__card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 40px 40px;
}

.plan__card h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.plan__desc {
  margin-top: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 24px;
  color: var(--brand-primary);
}

.plan__price small {
  font-size: 18px;
  color: var(--text-muted);
}

.plan__price strong {
  font-size: 28px;
  font-weight: 700;
}

.checks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: var(--text-muted);
}

.checks li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--point-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3L17 9'/%3E%3C/svg%3E") center / 24px no-repeat;
}

.plan__card .btn {
  margin-top: 24px;
}

/* ---------- 기능 6카드 (Frame 2147234819: 1908 · 제목 y100 · 그리드 1322 @ y310 · 카드 760/542×486 r20) ---------- */
.features {
  background: var(--surface-subtle);
  padding: 100px 0;
}

.feature-grid {
  width: min(1322px, calc(100% - 40px));
  margin: 55px auto 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 486px;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  text-align: center;
}

.feature--wide {
  grid-column: span 7;
}

.feature__art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 289px;
}

.feature__art img {
  max-width: 100%;
  height: auto;
}

.feature h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.feature p {
  margin-top: -4px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---------- 학습 흐름 (Frame 4: 1473 · 제목 y100 · 궤도 1060 @ y324) ---------- */
.flow {
  background: var(--surface-subtle);
  padding: 100px 0 103px;
}

/* 인라인 SVG — viewBox 407 300 1107 1070 (시안 좌표계), 제목 블록(255) 아래 45px */
.flow__art {
  display: block;
  width: min(1107px, 100%);
  height: auto;
  margin: 45px auto 0;
}

/* ---------- 디바이스 (Frame 9: 1063 · bg #4E8DF2 · 목업 1290 @ y321) ---------- */
.devices {
  background: var(--devices-bg);
  color: #fff;
  padding: 100px 0 13px;
  overflow: hidden;
}

.devices .section__title,
.devices .section__sub {
  color: #fff;
}

/* 시안: tela 920×625 @ x500,y335 · iPad @ x320 · iPhone — export 1398×745의 원점은 (290, 305) */
.devices__art {
  width: min(1398px, calc(100% - 40px));
  height: auto;
  margin: 50px auto 0;
  transform: translateX(29px);
}

/* ---------- FAQ (Frame 5: 753 · 제목 y100 · 목록 y247 · 행 72 gap 16 · 열림 테두리 Primary 2px) ---------- */
.faq-section {
  background: var(--faq-bg);
  padding: 100px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 80px;
}

.faq {
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 0 18px;
}

.faq[open] {
  border-color: var(--brand-primary);
  padding: 0 20px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-primary);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--faq-chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131949' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 24px no-repeat;
  transition: transform 0.2s ease;
}

.faq[open] summary::after {
  transform: rotate(180deg);
}

.faq p {
  padding: 0 0 22px;
  font-size: 18px;
  font-weight: 500;
  color: var(--brand-600);
}

.faq p a {
  color: var(--brand-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer (footer.footer: 319 · 링크 y40 · 로고 85×48 @ y101 · 사업자 y203 · 저작권 y261) ---------- */
.footer {
  background: var(--brand-primary);
  color: var(--footer-text);
  padding: 40px 0;
  font-size: 14px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgb(255 255 255 / 0.15);
}

.footer__links a {
  padding: 0 20px;
  border-left: 1px solid rgb(255 255 255 / 0.3);
  line-height: 1;
}

.footer__links a:first-child {
  padding-left: 0;
  border-left: 0;
}

.footer__links a:hover,
.footer__links strong {
  color: #fff;
}

.footer__brand {
  margin-top: 20px;
}

/* 로고 시안 8(한글 워드마크만) — 흰색·투명 변환본, 높이 48 기준(2026-10-05 사용자 지시). */
.footer__brand img {
  width: 115px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.footer__tagline {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.footer__biz {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__biz p {
  display: flex;
  flex-wrap: wrap;
}

.footer__biz span {
  padding: 0 12px;
  border-left: 1px solid rgb(255 255 255 / 0.3);
  line-height: 1.2;
}

.footer__biz span:first-child {
  padding-left: 0;
  border-left: 0;
}

.footer__copy {
  margin-top: 16px;
}

/* ---------- 약관 · 개인정보 처리방침 페이지 (terms.html / privacy.html) ---------- */
.legal {
  padding: 4rem 0;
  line-height: 1.6;
}

.legal h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}

.legal h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  padding: 0;
}

.legal li {
  margin: 0.25rem 0;
}

.legal__nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.legal__nav a {
  color: var(--text-muted);
}

.legal__nav a.is-active {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal ul ul {
  margin: 0.25rem 0 0.25rem 1.25rem;
}

.legal__officer {
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--brand-strong);
  background: rgb(19 25 73 / 0.05);
}

.legal__meta {
  font-size: 0.85rem;
  margin: -1rem 0 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 52%);
    gap: 32px;
    min-height: 0;
    padding: 96px 0 80px;
  }

  .hero__copy {
    margin-top: 40px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .feature,
  .feature--wide {
    grid-column: span 6;
  }
}

@media (max-width: 1100px) {
  .section__title,
  .plan__copy h2 {
    font-size: 40px;
  }

  .plan__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .nav__inner {
    height: 68px;
    gap: 24px;
  }

  .nav__brand img {
    width: 81px;
    height: 34px;
  }

  .nav__links {
    display: none;
  }

  .nav__cta .btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding: 56px 0 48px;
    gap: 32px;
  }

  .hero__copy {
    margin-top: 0;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero__lead {
    margin-top: 16px;
    padding: 0;
    font-size: 17px;
  }

  .hero__cta {
    margin-top: 28px;
    padding: 0;
  }

  .hero__cta .btn {
    font-size: 16px;
  }

  .hero__art {
    width: min(520px, 100%);
    justify-self: center;
  }

  .plan,
  .features,
  .flow,
  .devices,
  .faq-section {
    padding: 72px 0;
  }

  .section__title,
  .plan__copy h2 {
    font-size: 30px;
  }

  .section__sub,
  .plan__copy p {
    margin-top: 14px;
    font-size: 17px;
  }

  .plan__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .plan__card {
    padding: 28px 24px 32px;
    box-shadow: 0 16px 32px rgb(19 25 73 / 0.08);
  }

  .plan__card h3 {
    font-size: 22px;
  }

  .plan__desc,
  .checks li {
    font-size: 16px;
  }

  .btn--xl {
    font-size: 18px;
  }

  .feature-grid {
    margin-top: 36px;
    gap: 16px;
  }

  .feature,
  .feature--wide {
    grid-column: span 12;
    min-height: 0;
    padding: 32px 20px;
  }

  .feature__art {
    height: auto;
    max-height: 220px;
  }

  .feature__art img {
    max-height: 200px;
    width: auto;
  }

  .feature h3 {
    font-size: 22px;
  }

  .feature p {
    margin-top: 0;
    font-size: 16px;
  }

  .flow__art,
  .devices__art {
    margin-top: 32px;
    transform: none;
  }

  .faq-list {
    margin-top: 32px;
  }

  .faq summary {
    min-height: 60px;
    padding: 16px 0;
    font-size: 17px;
  }

  .faq p {
    font-size: 16px;
  }

  .footer__links a {
    padding: 0 12px;
  }

  .footer__biz span {
    border-left: 0;
    padding: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav__cta {
    gap: 8px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero__cta .btn {
    width: 100%;
  }
}
