:root {
  --bg: #ffffff;
  --surface: #f5f8fc;
  --surface-2: #edf2f8;
  --navy: #0b1f3a;
  --navy-2: #143258;
  --navy-soft: #eef3fa;
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #ecfdf5;
  --blue: #1d4ed8;
  --blue-soft: #eff6ff;
  --messenger: #0084ff;
  --kakao: #fee500;
  --kakao-ink: #191600;
  --ink: #111827;
  --ink-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px -2px rgba(11, 31, 58, 0.05);
  --shadow: 0 14px 36px -14px rgba(11, 31, 58, 0.12);
  --max: 1160px;
  --font-sans: 'Noto Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top announcement bar */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 150, 105, 0.24);
  color: #6ee7b7;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--emerald) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-domain {
  font-size: 1.02rem;
  font-weight: 800;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--emerald-dark);
  letter-spacing: 0.02em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--emerald-dark);
}

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

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 1.2rem;
}

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
}

.mobile-drawer {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer a {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--navy);
  background: var(--surface);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

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

.btn-sm {
  padding: 9px 14px;
  font-size: 0.84rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.98rem;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(11, 31, 58, 0.45);
}

.btn-navy:hover {
  background: var(--navy-2);
}

.btn-emerald {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(5, 150, 105, 0.45);
}

.btn-emerald:hover {
  background: var(--emerald-dark);
}

.btn-messenger {
  background: var(--messenger);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 132, 255, 0.45);
}

.btn-kakao {
  background: var(--kakao);
  color: var(--kakao-ink);
  border-color: #ebd300;
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: var(--surface);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.85fr;
    gap: 44px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid #a7f3d0;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.24;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.04rem;
  color: var(--ink-2);
  margin-bottom: 24px;
  max-width: 660px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

.trust-pill span {
  color: var(--emerald);
  font-weight: 800;
}

/* Hero Side Summary Card */
.hero-panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-panel-badge {
  display: inline-block;
  background: rgba(5, 150, 105, 0.25);
  color: #6ee7b7;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  line-height: 1.35;
}

.mini-price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.mini-price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.mini-price-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-price-val {
  font-weight: 800;
  color: #6ee7b7;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-panel-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
}

/* Page Sub-Hero */
.subhero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 40px 0 44px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}

.breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.subhero h1 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.subhero p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 780px;
  font-size: 1rem;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-dark);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--ink-2);
  max-width: 720px;
  margin-top: 8px;
  font-size: 0.96rem;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow);
}

.card-link:hover {
  transform: translateY(-2px);
  border-color: var(--emerald);
}

.card-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy);
  margin-bottom: 10px;
}

.card-badge-emerald {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card p {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.card-price {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
}

.card-price strong {
  color: var(--emerald-dark);
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

/* Anti-factory 3 Principles */
.principle-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 24px;
}

.principle-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--emerald-dark);
  margin-bottom: 8px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

th {
  background: var(--navy);
  color: #fff;
  padding: 14px 16px;
  font-weight: 700;
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

tbody tr:hover {
  background: #f8fbff;
}

.price-num {
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-highlight {
  color: var(--emerald-dark);
}

/* Callout */
.callout {
  background: var(--emerald-soft);
  border: 1px solid #a7f3d0;
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.94rem;
  color: var(--ink);
  margin: 20px 0;
}

.callout-navy {
  background: var(--navy-soft);
  border-color: #cbd5e1;
  border-left-color: var(--navy);
}

/* Spec grid on treatment pages */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.spec-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.spec-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

/* Interactive Finder Widget */
.finder-box {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.finder-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
}

.finder-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.finder-pill.active,
.finder-pill:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.finder-result {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

/* Filter tabs */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.search-input {
  width: 100%;
  max-width: 420px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  font-size: 0.94rem;
  font-family: inherit;
  margin-bottom: 18px;
}

.search-input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}

/* Bullet list */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald);
  font-weight: 800;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--emerald);
  font-weight: 800;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 20px 18px;
  color: var(--ink-2);
  font-size: 0.94rem;
  border-top: 1px solid var(--surface-2);
  padding-top: 12px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #10375c 60%, #065f46 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 860px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    padding: 40px 44px;
  }
}

.cta-banner h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 52px 0 36px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer h4 {
  color: #fff;
  font-size: 0.94rem;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: #6ee7b7;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
}

/* Mobile Sticky Conversion Bar */
.mobile-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  box-shadow: 0 -8px 24px rgba(11, 31, 58, 0.1);
}

.mobile-sticky .btn {
  flex: 1;
  padding: 11px 10px;
  font-size: 0.86rem;
}

@media (min-width: 900px) {
  .mobile-sticky { display: none; }
}

.prose h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin: 28px 0 10px;
}

.prose p {
  margin-bottom: 14px;
  color: var(--ink-2);
}

.hidden {
  display: none !important;
}
