:root {
  --teal-900: #0d3b3e;
  --teal-700: #14615f;
  --teal-600: #1a7a75;
  --teal-500: #24968e;
  --teal-100: #e3f4f1;
  --teal-50: #f2faf8;
  --amber-500: #e8a33d;
  --amber-600: #d68f2a;
  --ink-900: #1c2624;
  --ink-700: #3f4d4a;
  --ink-500: #6b7876;
  --ink-300: #a8b3b1;
  --line: #dfeae7;
  --bg: #fbfdfc;
  --card: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 59, 62, 0.06), 0 1px 1px rgba(13, 59, 62, 0.04);
  --shadow-md: 0 8px 24px rgba(13, 59, 62, 0.10);
  --shadow-lg: 0 20px 48px rgba(13, 59, 62, 0.14);
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Noto Sans KR", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }

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

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 253, 252, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--teal-900);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

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

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--teal-50);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  font-family: inherit;
}

.lang-toggle button.active {
  background: var(--teal-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-600); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--teal-700);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--teal-50); }

.btn-amber {
  background: var(--amber-500);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-amber:hover { background: var(--amber-600); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(36,150,142,0.14), transparent 60%),
    radial-gradient(900px 380px at 100% 0%, rgba(232,163,61,0.12), transparent 55%);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--teal-900);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero p.lede {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: var(--ink-700);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat b {
  display: block;
  font-size: 24px;
  color: var(--teal-800, var(--teal-700));
  font-weight: 800;
}
.stat span {
  font-size: 13px;
  color: var(--ink-500);
}

/* ---------- Tab switcher ---------- */
.tab-switcher {
  position: sticky;
  top: 68px;
  z-index: 30;
  background: var(--bg);
  padding: 18px 0 0;
}

.tab-switcher-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 22px;
  background: var(--teal-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 6px;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 14px 12px;
  border-radius: 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-700);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.tab-btn .tab-icon { font-size: 18px; }

.tab-btn.active {
  background: var(--card);
  color: var(--teal-800, var(--teal-700));
  box-shadow: var(--shadow-md);
}

.tab-btn:not(.active):hover { background: rgba(255,255,255,0.6); }

/* ---------- Panels ---------- */
.panel { display: none; padding-bottom: 80px; }
.panel.active { display: block; animation: fadein .25s ease; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-head {
  text-align: center;
  max-width: 560px;
  margin: 6px auto 28px;
}

.panel-head h2 {
  font-size: 24px;
  color: var(--teal-900);
  margin: 0 0 8px;
  font-weight: 800;
}

.panel-head p {
  color: var(--ink-500);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Filter bar ---------- */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
  align-items: center;
}

.filterbar select, .filterbar input[type="text"] {
  font-family: inherit;
  font-size: 13.5px;
  border: 1px solid var(--line);
  background: var(--teal-50);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--ink-900);
  min-width: 130px;
  flex: 1 1 130px;
}

.filterbar select:focus, .filterbar input:focus {
  outline: 2px solid var(--teal-500);
  outline-offset: 1px;
}

.filterbar .btn { flex: 0 0 auto; }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-top { display: flex; gap: 12px; align-items: flex-start; }

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
}

.card-title { flex: 1; min-width: 0; }
.card-title h3 {
  margin: 0 0 3px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-title .sub {
  font-size: 12.5px;
  color: var(--ink-500);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-700);
  white-space: nowrap;
}
.badge.amber { background: #fdf1de; color: var(--amber-600); }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-700);
  font-weight: 600;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-700);
}
.card-meta .row { display: flex; gap: 8px; align-items: center; }
.card-meta .ic { width: 16px; text-align: center; opacity: .75; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.price {
  font-weight: 800;
  color: var(--teal-800, var(--teal-700));
  font-size: 15px;
}
.price span {
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-500);
}

/* ---------- Trust / how it works ---------- */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}
.section-head h2 {
  font-size: 26px;
  color: var(--teal-900);
  font-weight: 800;
  margin: 0 0 10px;
}
.section-head p { color: var(--ink-500); margin: 0; font-size: 14.5px; }

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

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.step .num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-700);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 16px;
}

.step h3 { margin: 0 0 8px; font-size: 15.5px; color: var(--ink-900); }
.step p { margin: 0; font-size: 13.5px; color: var(--ink-500); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
}
.trust-item .ic {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--teal-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* ---------- CTA / form ---------- */
.cta-card {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-card h2 { margin: 0 0 10px; font-size: 24px; font-weight: 800; }
.cta-card p { margin: 0; color: rgba(255,255,255,0.82); font-size: 14.5px; max-width: 420px; }

.form-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-card input, .form-card select {
  font-family: inherit;
  font-size: 13.5px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.95);
  color: var(--ink-900);
}
.form-card input:focus, .form-card select:focus { outline: 2px solid var(--amber-500); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  margin-top: 20px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--teal-900); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-500); text-decoration: none; font-size: 13.5px; }
.footer-links a:hover { color: var(--teal-700); }
.footer-copy { font-size: 12.5px; color: var(--ink-300); width: 100%; text-align: center; margin-top: 18px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .cta-card { grid-template-columns: 1fr; padding: 28px 22px; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 28px; }
  .hero-stats { gap: 22px; }
  .tab-switcher { top: 60px; }
  .topbar-inner { height: 60px; }
  .brand span.brand-text { display: none; }
}

@media (max-width: 480px) {
  .filterbar { flex-direction: column; align-items: stretch; }
  .filterbar select, .filterbar input[type="text"] { width: 100%; }
  .filterbar .btn { width: 100%; }
}
