:root {
  --primary: #03c75a;
  --primary-dark: #029846;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f6f8fa;
  --surface: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
}

a { color: inherit; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.top {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav .login {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transition: background-color 0.18s ease;
}

.nav .login:hover,
.nav .login:focus-visible {
  background: #1f2937;
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.top.nav-open .nav-toggle-icon { background: transparent; }
.top.nav-open .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.top.nav-open .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f8fafb 100%);
}

.hero-inner {
  padding: 72px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: calc(0.95rem + 1pt);
  font-weight: 900;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: 0;
  word-break: keep-all;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #4b5563;
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

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

.button.secondary {
  border-color: var(--line);
  background: #fff;
}

section {
  padding: 64px 0;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.25;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item,
.note,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.item,
.note {
  padding: 24px;
}

.item h3,
.note h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.1rem;
}

.item p,
.note p,
.item ul,
.note ul {
  margin: 0;
  color: var(--muted);
}

.item ul,
.note ul {
  padding-left: 20px;
}

/* 기능소개 주요 기능 카드 전용 — 디자인 수정요청 0723 예시 카드 색상 */
.feature-grid .item {
  border-color: #d3f2da;
  background: #f0faf2;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

/* 가격안내 플랜 카드 — 개인 매장용과 여러 매장용을 선택 목적에 맞게 분리한다. */
.pricing-plans {
  background: #fff;
}

.pricing-plan-group > h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.3;
}

.pricing-plan-group + .pricing-plan-group {
  margin-top: 36px;
}

.pricing-plan-selector {
  display: none;
}

.pricing-plan-grid {
  display: grid;
  gap: 20px;
}

.pricing-plan-grid--personal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-plan-grid--franchise {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-plan-card {
  min-width: 0;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid #dbe1e8;
  border-radius: 14px;
  background: #fff;
}

.pricing-plan-card.is-recommended {
  background: #fbfefc;
}

.pricing-plan-card.is-featured {
  border-color: #05a84f;
  background: #f4fbf7;
  box-shadow: 0 12px 32px rgba(3, 152, 70, 0.09);
}

.pricing-plan-heading {
  min-height: 124px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.pricing-plan-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 2px 10px;
  border: 1px solid #8edcac;
  border-radius: 999px;
  background: #f5fcf7;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.pricing-plan-card.is-featured .pricing-plan-badge {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fff;
}

.pricing-plan-badge--placeholder {
  visibility: hidden;
}

.pricing-plan-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1.25;
}

.pricing-plan-price {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 1.13rem;
  font-weight: 700;
}

.pricing-plan-details {
  flex: 1;
  padding: 20px 0;
}

.pricing-plan-features {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-plan-features li {
  position: relative;
  padding-left: 26px;
  color: #374151;
}

.pricing-plan-features li::before {
  position: absolute;
  top: 0.22em;
  left: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #25a766;
  border-radius: 50%;
  color: var(--primary-dark);
  content: "✓";
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.pricing-plan-services {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-plan-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #182235;
  border-radius: 9px;
  background: #fff;
  color: #182235;
  text-decoration: none;
  font-weight: 900;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.pricing-plan-action:hover,
.pricing-plan-action:focus-visible {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.pricing-plan-action--primary {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fff;
}

.pricing-plan-action--primary:hover,
.pricing-plan-action--primary:focus-visible {
  border-color: #02783a;
  background: #02783a;
  color: #fff;
}

.pricing-plan-card--compact {
  min-height: 176px;
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(170px, 1.2fr) 88px;
  align-items: center;
  gap: 14px;
  padding: 24px;
}

.pricing-plan-card--compact .pricing-plan-heading {
  min-height: 0;
  padding: 0;
  border: 0;
}

.pricing-plan-card--compact .pricing-plan-heading h3 {
  font-size: 1.2rem;
}

.pricing-plan-card--compact .pricing-plan-price {
  font-size: 1rem;
}

.pricing-plan-card--compact .pricing-plan-details {
  padding: 0;
}

.pricing-plan-card--compact .pricing-plan-features {
  grid-template-columns: 1fr;
  gap: 7px;
}

.pricing-plan-card--compact .pricing-plan-action {
  width: 88px;
  min-width: 0;
  padding-inline: 10px;
}

.pricing-plan-note {
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 0.92rem;
}

/* 플랜별 이용 예시 — 탭 선택에 따라 매장과 키워드 구성을 한 화면씩 보여준다. */
.plan-examples {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.plan-examples-head {
  max-width: none;
  text-align: center;
}

.plan-example-shell {
  padding: 24px;
  border: 1px solid #dbe1e8;
  border-radius: 16px;
  background: #fff;
}

.plan-example-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d6dde5;
  border-radius: 10px;
  background: #fff;
}

.plan-example-tab {
  min-height: 52px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid #d6dde5;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.plan-example-tab:last-child {
  border-right: 0;
}

.plan-example-tab[aria-selected="true"] {
  background: var(--primary-dark);
  color: #fff;
}

.plan-example-tab:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(3, 199, 90, 0.28);
  outline-offset: -3px;
}

.plan-example-panel[hidden] {
  display: none;
}

.plan-example-summary {
  display: flex;
  align-items: center;
  margin-top: 24px;
  padding: 22px 26px;
  border: 1px solid #cbe6d5;
  border-radius: 12px;
  background: #f3faf6;
}

.plan-example-summary h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.35rem;
}

.plan-example-summary p {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.plan-example-stores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.plan-example-stores--single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.plan-example-stores--franchise {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-example-store,
.plan-example-remaining {
  min-width: 0;
  min-height: 174px;
  padding: 20px;
  border: 1px solid #dbe1e8;
  border-radius: 12px;
  background: #fff;
}

.plan-example-store header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.plan-example-store h4,
.plan-example-remaining h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  word-break: keep-all;
}

.plan-example-count {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid #b9dfc8;
  border-radius: 8px;
  background: #f5fcf7;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.plan-example-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.plan-example-keywords span {
  padding: 6px 10px;
  border: 1px solid #dde3e9;
  border-radius: 8px;
  background: #fff;
  color: #263244;
  font-size: 0.86rem;
}

.plan-example-remaining {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: #32ad6b;
  text-align: center;
}

.plan-example-remaining-icon {
  min-width: 50px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 9px;
  background: #eaf8ef;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.plan-example-remaining p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.plan-example-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  width: calc(100% + 15px);
  margin-left: -15px;
  padding-left: 25px;
}

table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  min-width: 720px;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th,
.table-wrap td {
  white-space: nowrap;
}

th {
  color: var(--ink);
  background: #fbfcfd;
}

thead th:first-child {
  border-top-left-radius: 7px;
}

thead th:last-child {
  border-top-right-radius: 7px;
}

tr:last-child td {
  border-bottom: 0;
}

/* 가격표 강조 단어·추천 배지·하단 안내 — 디자인 수정요청 0723 */
.table-wrap .accent {
  color: #11aa00;
  font-weight: 700;
}

.table-wrap tbody td:first-child {
  position: relative;
}

.table-wrap tbody td:first-child strong {
  white-space: nowrap;
}

.badge-recommend {
  position: absolute;
  top: calc(50% + 0.5px);
  left: -5px;
  z-index: 1;
  transform: translate(-50%, -50%);
  padding: 2px 8px;
  border-radius: 6px;
  background: #11aa00;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.table-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

details {
  padding: 18px 20px;
}

details + details {
  margin-top: 14px;
}

summary {
  display: flex;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
  word-break: keep-all;
}

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

summary::before {
  flex: 0 0 auto;
  color: var(--primary-dark);
  content: "Q.";
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 14px;
}

@media (max-width: 1040px) {
  .pricing-plan-card--compact {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pricing-plan-card--compact .pricing-plan-action {
    width: 100%;
  }

  .plan-example-stores--franchise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .top-inner {
    min-height: 64px;
    align-items: center;
    flex-flow: row wrap;
    padding: 10px 0;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    order: 3;
    gap: 2px;
    overflow: visible;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .top.nav-open .nav {
    display: flex;
    flex-direction: column;
  }

  .nav a {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .nav .login {
    justify-content: center;
    margin-top: 4px;
  }

  .hero-inner {
    padding: 48px 0;
  }

  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .pricing-plan-grid--personal,
  .pricing-plan-grid--franchise {
    grid-template-columns: 1fr;
  }

  .pricing-plan-selector {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
  }

  .pricing-plan-selector--personal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-plan-selector--franchise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-plan-selector-tab {
    min-width: 0;
    min-height: 46px;
    padding: 8px 6px;
    border: 1px solid #d6dde5;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    word-break: keep-all;
  }

  .pricing-plan-selector-tab[aria-selected="true"] {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: #fff;
  }

  .pricing-plan-selector-tab:focus-visible {
    outline: 3px solid rgba(3, 199, 90, 0.28);
    outline-offset: 2px;
  }

  .pricing-plan-card {
    min-height: 0;
  }

  .pricing-plan-card--compact {
    display: flex;
  }

  .pricing-plan-card:not(.is-mobile-plan-active) {
    display: none;
  }

  .plan-example-shell {
    padding: 18px;
  }

  .plan-example-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .plan-example-tab {
    min-width: 0;
    grid-column: span 2;
    min-height: 46px;
    padding: 8px 6px;
    border: 1px solid #d6dde5;
    border-radius: 8px;
    font-size: 0.84rem;
  }

  .plan-example-tab:nth-child(n + 4) {
    grid-column: span 3;
  }

  .plan-example-tab:last-child {
    border-right: 1px solid #d6dde5;
  }

  .plan-example-summary {
    align-items: flex-start;
    padding: 20px;
  }

  .plan-example-summary p {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .plan-example-summary-divider {
    display: none;
  }

  .plan-example-stores,
  .plan-example-stores--single,
  .plan-example-stores--franchise {
    grid-template-columns: 1fr;
  }

  .plan-example-store,
  .plan-example-remaining {
    min-height: 0;
  }

  section {
    padding: 48px 0;
  }
}
