* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    "Segoe UI", sans-serif;
  background: #fff;
  color: #1f2937;
}

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

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

.page .inner {
  width: min(980px, 92vw);
}

.top-header {
  background: #fff;
  padding: 14px 20px;
  border-bottom: 1px solid #eceff5;
}

.header-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-mark { display: none; }
.brand-logo { height: 48px; width: auto; display: block; }

.brand-text {
  color: #1d4ed8;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-btn {
  display: none;
}

.icon-bell {
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

.login-btn {
  display: inline-block;
  text-decoration: none;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 12px;
  border-radius: 10px;
}

.header-nav {
  width: min(1200px, 92vw);
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.header-nav .flat-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* Desktop: hide categorized menu by default */
.menu-cats {
  display: none;
}

.header-nav-item {
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: #404040;
  line-height: 1.1;
  padding: 10px 14px;
  border-radius: 999px;
}

.header-nav-item.active {
  color: #1d4ed8;
  background: #eff6ff;
}
.header-nav-item .nav-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  vertical-align: middle;
}

/* Mobile: PC와 동일 flat-links 메뉴 */
@media (max-width: 980px) {
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbeafe;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
  }
  .header-nav { display: none; }
  .header-nav.open { display: block; background: #ffffff; border-top: 1px solid #e5e7eb; padding: 12px 16px; }
  .header-nav .flat-links { display: none; }
  .header-nav.open .flat-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .header-nav .menu-cats { display: none !important; }
  .header-nav.open .header-nav-item {
    display: block;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 10px;
    background: #f9fafb;
    text-align: left;
    white-space: normal;
  }
  .header-nav.open .header-nav-item.active,
  .header-nav.open .header-nav-item:active {
    background: #eff6ff;
    color: #1d4ed8;
  }
}
.menu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5b6b;
}

.page {
  padding: 44px 0 72px;
}

.main-banner {
  margin-bottom: 48px;
}

.banner-slide {
  min-height: 250px;
  border-radius: 12px;
  padding: 30px;
  color: #fff;
  background: linear-gradient(135deg, #141821, #2b3140);
}

.banner-slide h1 {
  margin: 0;
  font-size: 36px;
}

.banner-slide p {
  margin: 8px 0 0;
  color: #d2dbff;
}

.best-plans {
  margin-bottom: 48px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
}

.tag {
  background: #fff2f6;
  color: #ff5b84;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plan-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.plan-card {
  border: 1px solid #e6e9f5;
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.plan-link:hover .plan-card,
.plan-link:focus-visible .plan-card {
  border-color: #d9ddf5;
  box-shadow: 0 10px 20px rgba(39, 45, 77, 0.08);
  transform: translateY(-2px);
}

.plan-meta {
  margin: 0 0 10px;
  color: #666;
  font-size: 13px;
}

.plan-card h3 {
  margin: 0;
  font-size: 24px;
}

.plan-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  margin: 2px 0 6px;
}

.plan-card h3 small {
  font-size: 14px;
  color: #666;
}

.gift {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: #fff7f9;
  color: #ff5b84;
  font-weight: 700;
}

.before {
  margin: 16px 0 0;
  color: #666;
}

.after {
  margin: 4px 0 0;
  color: #3b82f6;
  font-size: 28px;
  font-weight: 700;
}

.smart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 48px;
}

.smart-card {
  border: 1px solid #e6e9f5;
  border-radius: 12px;
  padding: 24px;
  background: #fff;
}

.smart-card h2 {
  margin: 0 0 12px;
}

.feature p {
  color: #666;
  margin: 0 0 12px;
}

.cta-btn {
  display: inline-block;
  text-decoration: none;
  background: #1d4ed8;
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.logo-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.logo-grid span {
  border: 1px solid #eceef8;
  border-radius: 10px;
  padding: 12px 8px;
  height: 72px;
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.logo-link:hover span,
.logo-link:focus-visible span {
  border-color: #d9ddf5;
  box-shadow: 0 8px 18px rgba(39, 45, 77, 0.08);
}

.logo-grid img {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  display: block;
}

.faq {
  margin-top: 0;
  border: 1px solid #e6e9f5;
  border-radius: 12px;
  padding: 28px;
}

.faq h2 {
  margin: 0 0 10px;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid #eceff7;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item h3 {
  margin: 0;
  font-size: 18px;
}

.faq-item p {
  margin: 8px 0 0;
  color: #4b5563;
  line-height: 1.7;
  font-size: 15px;
}

.bottom-cta {
  margin-top: 48px;
  background: #fffdeb;
}

.bottom-cta .inner {
  min-height: 120px;
  display: flex;
  align-items: center;
}

.bottom-cta p {
  margin: 0;
  color: #003755;
  font-weight: 700;
  font-size: 30px;
}

.site-footer {
  margin-top: 0;
  padding: 24px 0 36px;
  background: #2f2e3b;
}

.site-footer p {
  margin: 0 0 8px;
  color: rgba(246, 245, 255, 0.5);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .plan-grid,
  .smart-grid,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .banner-slide h1 {
    font-size: 28px;
  }

  .after {
    font-size: 24px;
  }

  .bottom-cta p {
    font-size: 22px;
  }
}

/* ── 한 줄 헤더 레이아웃 ── */
.header-inner {
  gap: 16px;
  flex-wrap: wrap;
}
.brand { flex: 0 0 auto; }
.header-nav {
  flex: 1 1 auto;
  margin: 0 !important;
  width: auto !important;
  min-width: 0;
  justify-content: center;
}
.header-nav .flat-links {
  gap: 6px;
  flex-wrap: nowrap;
}
.header-nav-item {
  font-size: 14px;
  padding: 8px 10px;
  white-space: nowrap;
}
.header-actions {
  margin-left: auto;
}
@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; }
  .header-nav {
    flex: 1 1 100%;
    order: 3;
  }
  .header-nav.open {
    width: 100%;
    margin-top: 8px;
  }
}

