/* GovMatch — Production-style SaaS theme */

:root {
  --brand: #1F40FF;
  --brand-dark: #1633CC;
  --brand-soft: #EEF1FF;
  --accent: #FFD600;
  --ink: #0B1424;
  --ink-2: #1F2937;
  --muted: #6B7280;
  --muted-2: #9AA1AC;
  --bg: #FAFBFC;
  --bg-2: #F4F6FA;
  --line: #E5E7EB;
  --line-2: #EEF0F4;
  --card: #FFFFFF;
  --kakao: #FEE500;
  --kakao-ink: #181600;
  --success: #10B981;
  --danger: #EF4444;
  --shadow-sm: 0 1px 2px rgba(11,20,36,0.04), 0 1px 1px rgba(11,20,36,0.03);
  --shadow-md: 0 6px 18px rgba(11,20,36,0.07), 0 2px 6px rgba(11,20,36,0.04);
  --shadow-lg: 0 24px 48px rgba(11,20,36,0.10), 0 8px 20px rgba(11,20,36,0.06);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ─── Layout ──────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }

/* ─── Header ──────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid var(--line-2);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, #4D6CFF 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 10px rgba(31,64,255,0.30);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav button.nav-link {
  background: transparent; border: 0; padding: 8px 0;
  font-size: 14.5px; color: var(--ink-2); font-weight: 500;
  position: relative;
}
.nav button.nav-link:hover { color: var(--brand); }
.nav button.nav-link.active { color: var(--brand); font-weight: 600; }
.nav button.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -16px;
  height: 2px; background: var(--brand); border-radius: 2px;
}

/* ─── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-sm);
  padding: 11px 18px; font-size: 14.5px; font-weight: 600;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 6px 14px rgba(31,64,255,0.30); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 24px rgba(31,64,255,0.34); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-line { background: white; color: var(--ink-2); border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--ink-2); }
.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-kakao:hover { background: #FEDB00; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 10px; }
.btn-xl { padding: 17px 28px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ─── Hero ────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(31,64,255,0.08) 0%, transparent 60%),
    radial-gradient(40% 50% at 10% 100%, rgba(255,214,0,0.10) 0%, transparent 60%),
    #FAFBFC;
  padding: 88px 0 64px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); color: var(--brand);
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero h1 {
  font-size: 50px; line-height: 1.18; letter-spacing: -0.025em;
  margin: 0 0 20px; font-weight: 800; color: var(--ink);
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--brand) 0%, #4D6CFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 18px; color: var(--muted); margin: 0 0 32px;
}
.hero-form {
  background: white; border-radius: var(--radius-lg);
  padding: 8px; box-shadow: var(--shadow-md);
  display: flex; gap: 6px; max-width: 460px;
  border: 1px solid var(--line-2);
}
.hero-form input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-size: 16px; padding: 12px 14px; color: var(--ink);
  font-family: inherit;
}
.hero-meta {
  display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap;
  color: var(--muted); font-size: 13.5px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--success); }

/* Hero illustration: phone mockup */
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 480px;
}
.phone {
  width: 280px; height: 560px; border-radius: 40px;
  background: linear-gradient(160deg, #1A1F36 0%, #0B1424 100%);
  padding: 14px; box-shadow: var(--shadow-lg);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 24px; background: #000; border-radius: 16px;
}
.phone-screen {
  background: white; border-radius: 28px; height: 100%; overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-bar {
  padding: 30px 20px 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.phone-app-header {
  padding: 8px 20px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line-2);
}
.phone-app-header .logo-mark { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
.phone-app-header .nm { font-weight: 700; font-size: 14px; }
.phone-feed { padding: 14px 16px; flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.notif {
  background: white; border: 1px solid var(--line-2); border-radius: 14px;
  padding: 12px 14px; font-size: 12.5px; line-height: 1.5;
  box-shadow: var(--shadow-sm);
  animation: rise .8s cubic-bezier(.2,.7,.2,1) both;
}
.notif:nth-child(1) { animation-delay: .1s; }
.notif:nth-child(2) { animation-delay: .35s; }
.notif:nth-child(3) { animation-delay: .60s; }
.notif .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.notif .src { font-size: 11px; color: var(--brand); font-weight: 600; }
.notif .dday { font-size: 11px; color: var(--danger); font-weight: 700; }
.notif .ttl { color: var(--ink); font-weight: 600; margin: 2px 0; }
.notif .meta { color: var(--muted); font-size: 11px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* floating decoration */
.float-card {
  position: absolute; background: white; border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.float-card.f1 { top: 60px; left: -10px; }
.float-card.f2 { bottom: 70px; right: -20px; }
.float-card .ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.float-card .ico.acc { background: #FFF8D6; color: #B58900; }

/* ─── Logos bar ───────────────────────── */
.trust-bar {
  padding: 28px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  background: white;
}
.trust-bar .row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.trust-bar .lbl { color: var(--muted); font-size: 13px; font-weight: 500; }
.trust-bar .srcs { display: flex; gap: 28px; flex-wrap: wrap; }
.trust-bar .src {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-weight: 600; font-size: 14px;
  opacity: 0.85;
}
.trust-bar .src .pill {
  background: var(--bg-2); padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; color: var(--muted);
}

/* ─── Section heading ─────────────────── */
.sec-head {
  text-align: center; max-width: 720px; margin: 0 auto 56px;
}
.sec-head .eyebrow {
  color: var(--brand); font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px;
}
.sec-head h2 {
  font-size: 38px; line-height: 1.22; letter-spacing: -0.02em;
  margin: 0 0 14px; font-weight: 800;
}
.sec-head p {
  font-size: 17px; color: var(--muted); margin: 0;
}

/* ─── How it works ────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.step-card {
  background: white; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 28px; position: relative; transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; margin-bottom: 18px;
}
.step-card h3 { font-size: 19px; margin: 0 0 8px; font-weight: 700; }
.step-card p { color: var(--muted); margin: 0; font-size: 14.5px; }
.step-arrow {
  position: absolute; top: 50%; right: -28px; transform: translateY(-50%);
  color: var(--line); font-size: 24px; line-height: 1;
}
@media (max-width: 880px) { .step-arrow { display: none; } .steps { grid-template-columns: 1fr; } }

/* ─── Comparison ──────────────────────── */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  background: var(--bg-2); padding: 32px; border-radius: var(--radius-xl);
}
.compare .col { background: white; border-radius: var(--radius-lg); padding: 28px; }
.compare .col.x { color: var(--muted); }
.compare .col.x ul li::before { content: "✕"; color: var(--danger); }
.compare .col.o { border: 2px solid var(--brand); position: relative; }
.compare .col.o::after {
  content: "GovMatch"; position: absolute; top: -12px; right: 18px;
  background: var(--brand); color: white; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.compare .col h4 { margin: 0 0 16px; font-size: 17px; font-weight: 700; }
.compare ul { margin: 0; padding: 0; list-style: none; }
.compare li {
  padding: 10px 0 10px 30px; position: relative; font-size: 15px;
  border-bottom: 1px solid var(--line-2);
}
.compare li:last-child { border-bottom: 0; }
.compare li::before {
  position: absolute; left: 0; top: 10px;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.compare .col.o li::before {
  content: "✓"; background: var(--brand); color: white;
}

/* ─── Features ────────────────────────── */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: white; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 28px;
}
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 22px;
}
.feature h4 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ─── Ebook ───────────────────────────── */
.ebook-section { background: linear-gradient(180deg, white 0%, var(--bg-2) 100%); }
.ebook {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center;
  background: white; border-radius: var(--radius-xl); padding: 48px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line-2);
}
.ebook-cover {
  aspect-ratio: 3/4; max-width: 320px;
  background: linear-gradient(135deg, #0B1424 0%, #1F40FF 100%);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px; color: white;
  position: relative; overflow: hidden;
  transform: rotateY(-5deg) rotateX(2deg); transform-style: preserve-3d;
}
.ebook-cover::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 60%);
}
.ebook-cover .tag {
  font-size: 11px; letter-spacing: 0.15em; opacity: 0.7; font-weight: 600;
}
.ebook-cover .ti { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.ebook-cover .au { font-size: 13px; opacity: 0.8; }
.ebook-info h2 { font-size: 32px; margin: 0 0 14px; letter-spacing: -0.02em; font-weight: 800; }
.ebook-info p.lead { font-size: 16px; color: var(--muted); margin: 0 0 22px; }
.ebook-info ul { list-style: none; padding: 0; margin: 0 0 28px; }
.ebook-info li {
  padding: 10px 0 10px 28px; position: relative; font-size: 15px; color: var(--ink-2);
}
.ebook-info li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}
.ebook-info .price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.ebook-info .price-row .price { font-size: 32px; font-weight: 800; }
.ebook-info .price-row .original { text-decoration: line-through; color: var(--muted-2); font-size: 16px; }
.ebook-info .price-row .badge {
  background: #FFEEEE; color: var(--danger); padding: 3px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700;
}

/* ─── Pricing (consulting) ────────────── */
.pricing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.plan {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; position: relative; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.plan.featured::before {
  content: "추천"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: white;
  padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.plan h3 { font-size: 19px; margin: 0 0 6px; font-weight: 700; }
.plan .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.plan .price { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.plan .price .unit { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 24px 0; flex: 1; }
.plan li {
  padding: 8px 0 8px 26px; position: relative; font-size: 14.5px; color: var(--ink-2);
}
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  color: var(--brand); font-weight: 800; font-size: 13px;
}

/* ─── FAQ ─────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line-2);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 22px 8px; font-weight: 600; font-size: 16.5px;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; color: var(--muted); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--brand); }
.faq-item .ans { padding: 0 8px 22px; color: var(--muted); font-size: 15px; }

/* ─── Final CTA ───────────────────────── */
.final-cta {
  background: linear-gradient(135deg, var(--brand) 0%, #4D6CFF 100%);
  border-radius: var(--radius-xl); padding: 64px 48px; text-align: center;
  color: white; position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 60%; height: 200%; transform: rotate(-25deg);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), transparent);
}
.final-cta h2 { font-size: 40px; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.02em; }
.final-cta p { font-size: 17px; opacity: 0.9; margin: 0 0 28px; }
.final-cta .btn-primary { background: white; color: var(--brand); }
.final-cta .btn-primary:hover { background: #F4F6FA; }

/* ─── Footer ──────────────────────────── */
.site-footer {
  background: #0B1424; color: #C9CFDB;
  padding: 56px 0 28px; margin-top: 56px;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px;
  padding-bottom: 32px; border-bottom: 1px solid #1F2944;
}
.foot-grid h5 { color: white; font-size: 14px; margin: 0 0 14px; font-weight: 700; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 5px 0; font-size: 13.5px; }
.foot-grid li a:hover { color: white; }
.foot-grid .brand-block .desc { color: #8893A8; font-size: 13.5px; line-height: 1.7; margin-top: 12px; }
.foot-bottom {
  padding-top: 22px; display: flex; justify-content: space-between; align-items: center;
  color: #6B7689; font-size: 12.5px; flex-wrap: wrap; gap: 12px;
}

/* ─── Auth (page 2) ───────────────────── */
.auth-page { background: var(--bg-2); min-height: calc(100vh - 70px); padding: 56px 24px; }
.auth-card {
  max-width: 460px; margin: 0 auto; background: white;
  border-radius: var(--radius-lg); padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.auth-card h2 { font-size: 26px; margin: 0 0 6px; font-weight: 800; }
.auth-card p.sub { color: var(--muted); margin: 0 0 28px; font-size: 14.5px; }
.auth-tabs { display: flex; gap: 0; background: var(--bg-2); padding: 4px; border-radius: 10px; margin-bottom: 24px; }
.auth-tabs button {
  flex: 1; padding: 9px; background: transparent; border: 0;
  border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted);
}
.auth-tabs button.on { background: white; color: var(--ink); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--ink-2);
}
.field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; outline: none; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,64,255,0.12); }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; }
.divider-or {
  text-align: center; margin: 22px 0; position: relative; color: var(--muted-2); font-size: 13px;
}
.divider-or::before, .divider-or::after {
  content: ""; position: absolute; top: 50%; width: calc(50% - 24px);
  height: 1px; background: var(--line);
}
.divider-or::before { left: 0; }
.divider-or::after { right: 0; }
.consent { font-size: 13px; color: var(--muted); margin: 18px 0; }
.consent label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.consent input[type=checkbox] { margin-top: 3px; accent-color: var(--brand); }
.row-between { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 18px; font-size: 13.5px; color: var(--muted); }

/* ─── Mypage (page 3) ─────────────────── */
.app-shell { background: var(--bg-2); min-height: calc(100vh - 70px); padding: 32px 24px 56px; }
.app-grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; max-width: 1280px; margin: 0 auto; }
.side-card {
  background: white; border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line-2);
  height: fit-content; position: sticky; top: 86px;
}
.side-card .user {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: var(--bg-2); border-radius: 10px; margin-bottom: 14px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #4D6CFF);
  color: white; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card li {
  padding: 10px 12px; border-radius: 8px; font-size: 14.5px; color: var(--muted);
  cursor: pointer; margin-bottom: 2px;
}
.side-card li:hover { background: var(--bg-2); color: var(--ink); }
.side-card li.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.app-main { display: flex; flex-direction: column; gap: 20px; }
.panel {
  background: white; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line-2);
}
.panel h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.panel .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

.biz-grid { display: grid; gap: 12px; }
.biz-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.biz-item .info { display: flex; align-items: center; gap: 14px; }
.biz-item .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.biz-item .name { font-weight: 700; font-size: 15px; }
.biz-item .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.biz-status {
  background: #E7F8EF; color: var(--success); padding: 3px 10px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.biz-status.draft { background: #FFF4E5; color: #B58900; }

.match-grid { display: grid; gap: 12px; }
.match {
  border: 1px solid var(--line-2); border-radius: 12px; padding: 18px;
  transition: border-color .15s, box-shadow .15s;
}
.match:hover { border-color: var(--brand); box-shadow: 0 8px 20px rgba(31,64,255,0.08); }
.match .top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.match .src {
  background: var(--brand-soft); color: var(--brand);
  padding: 3px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 700;
}
.match .cat {
  background: var(--bg-2); color: var(--muted); padding: 3px 10px;
  border-radius: 6px; font-size: 11.5px; font-weight: 600;
}
.match .dday {
  background: #FFE9E9; color: var(--danger); padding: 3px 10px;
  border-radius: 6px; font-size: 11.5px; font-weight: 700; margin-left: auto;
}
.match h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.match .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.match .actions { display: flex; gap: 8px; }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--line-2);
}
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .label { font-weight: 600; font-size: 14.5px; }
.toggle-row .desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.switch {
  width: 42px; height: 24px; background: var(--line); border-radius: 999px;
  position: relative; cursor: pointer; transition: background .15s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  background: white; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: left .15s;
}
.switch.on { background: var(--brand); }
.switch.on::after { left: 20px; }

/* ─── Pages (SPA) ─────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ─── Hamburger ───────────────────────── */
.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: 8px;
  font-size: 22px; cursor: pointer; color: var(--ink);
}
.nav-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(11,20,36,0.4);
  z-index: 49; backdrop-filter: blur(2px);
}

/* ─── Responsive ──────────────────────── */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .container { padding: 0 20px; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 38px; }
  .hero p.lead { font-size: 16px; }
  .features, .pricing { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .ebook { grid-template-columns: 1fr; padding: 28px; gap: 32px; text-align: center; }
  .ebook-cover { margin: 0 auto; transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .sec-head h2 { font-size: 28px; }
  .final-cta { padding: 40px 24px; }
  .final-cta h2 { font-size: 28px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }

  /* 햄버거 ON */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed; top: 64px; right: 0; bottom: 0;
    width: 84%; max-width: 320px;
    background: white; flex-direction: column;
    align-items: flex-start; gap: 0;
    padding: 24px 24px 32px;
    box-shadow: -8px 0 24px rgba(11,20,36,0.10);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 60;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav.open ~ .nav-overlay,
  .nav-overlay.open { display: block; }
  .nav button.nav-link {
    width: 100%; padding: 14px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 16px; text-align: left;
  }
  .nav button.nav-link.active::after { display: none; }
  .nav .btn-primary { width: 100%; margin-top: 14px; padding: 14px; font-size: 15px; }

  /* Hero phone mockup — 모바일에서 살짝 축소 */
  .hero-visual { min-height: 420px; }
  .phone { width: 240px; height: 480px; }
  .float-card { font-size: 12px; padding: 10px 12px; }
  .float-card.f1 { top: 30px; left: 8px; }
  .float-card.f2 { bottom: 30px; right: 8px; }

  .hero-form { max-width: 100%; flex-direction: column; padding: 12px; }
  .hero-form input { padding: 14px; font-size: 16px; }
  .hero-form button { width: 100%; padding: 14px; }
  .hero-meta { font-size: 13px; gap: 14px; }
}

@media (max-width: 640px) {
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 32px; line-height: 1.22; }
  .hero p.lead { font-size: 15px; }
  .hero-eyebrow { font-size: 12px; }
  .sec-head { margin-bottom: 36px; }
  .sec-head h2 { font-size: 24px; }
  .sec-head p { font-size: 15px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 40px 0; }

  /* Hero 모바일 단순화: phone mockup 축소 + float 카드는 숨김 */
  .hero-visual { min-height: 380px; }
  .phone { width: 220px; height: 440px; }
  .float-card.f1 { top: 16px; left: 0; }
  .float-card.f2 { bottom: 16px; right: 0; }

  /* Trust bar — 1줄로 줄바꿈 */
  .trust-bar .row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .trust-bar .srcs { gap: 14px; }
  .trust-bar .src { font-size: 13px; }

  /* Steps */
  .step-card { padding: 22px; }
  .step-card h3 { font-size: 17px; }
  .step-arrow { display: none; }

  /* Compare */
  .compare li { font-size: 14px; padding: 9px 0 9px 28px; }
  .compare .col { padding: 20px; }
  .compare .col.o::after { right: 12px; }

  /* Features */
  .feature { padding: 22px; }

  /* Ebook */
  .ebook { padding: 24px 18px; }
  .ebook-cover { max-width: 240px; }
  .ebook-info h2 { font-size: 24px; }
  .ebook-info p.lead { font-size: 15px; }

  /* Pricing */
  .plan { padding: 26px 22px; }
  .plan .price { font-size: 28px; }

  /* FAQ */
  .faq-item summary { padding: 18px 4px; font-size: 15px; }
  .faq-item .ans { padding: 0 4px 18px; font-size: 14px; }

  /* Footer */
  .foot-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Final CTA */
  .final-cta { padding: 36px 20px; }
  .final-cta h2 { font-size: 24px; }
  .final-cta p { font-size: 15px; }
  .final-cta .btn-xl { padding: 14px 22px; font-size: 15px; }

  /* Auth card */
  .auth-card { padding: 28px 22px; border-radius: 14px; }
  .auth-card h2 { font-size: 22px; }
  .auth-page { padding: 24px 14px; }

  /* Mypage */
  .app-shell { padding: 20px 14px 40px; }
  .panel { padding: 20px; border-radius: 10px; }
  .panel h3 { font-size: 17px; }
  .biz-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .biz-item .info { width: 100%; }
  .biz-item button { width: 100%; }
  .match { padding: 14px; }
  .match h4 { font-size: 14.5px; }
  .match .meta { font-size: 13px; }
  .match .actions { flex-direction: column; }
  .match .actions button { width: 100%; }

  /* Logo size on small */
  .logo { font-size: 18px; }
  .logo-mark { width: 26px; height: 26px; font-size: 13px; }

  /* Site header — make sticky compact */
  .site-header .row { padding: 11px 0; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .phone { width: 200px; height: 400px; }
  .float-card { display: none; }
}
