/* TableSnap marketing site — system fonts only, no third-party requests. */
:root {
  --bg: #f4f6fb;
  --bg-2: #eef2f7;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --line: #e2e8f0;
  --line-2: #edf1f5;
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --navy: #0b1220;
  --green: #15803d;
  --green-50: #f0fdf4;
  --radius: 12px;
  --shadow: 0 18px 50px -24px rgba(15, 23, 42, .35);
  --header-h: 64px;
  --content: 1080px;
  --legal: 760px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-color: #bfdbfe; text-underline-offset: 2px; }
a:hover { color: var(--blue-600); }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -40px; background: var(--text); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(244, 246, 251, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: calc(var(--content) + 48px); margin: 0 auto; padding: 0 24px; min-height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.02em; flex-shrink: 0; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.logo .word { font-size: 16px; }
.logo .word span { font-weight: 550; color: var(--faint); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 550; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: #fff; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.menu-toggle > summary { list-style: none; cursor: pointer; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; font-weight: 600; font-size: 14px; }
.menu-toggle > summary::-webkit-details-marker { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; padding: 10px 16px; font: inherit; font-size: 14.5px; font-weight: 620; text-decoration: none !important; border: 1px solid transparent; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.btn-dark { background: var(--text); color: #fff !important; }
.btn-dark:hover { background: #1e293b; color: #fff !important; }
.btn-blue { background: var(--blue); color: #fff !important; }
.btn-blue:hover { background: var(--blue-600); color: #fff !important; }
.btn-ghost { background: #fff; color: var(--text) !important; border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; background: var(--bg); color: var(--text) !important; }
.btn-lg { padding: 13px 20px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* Layout */
main { flex: 1; }
.wrap { max-width: calc(var(--content) + 48px); margin: 0 auto; padding: 0 24px; }
.legal-wrap { max-width: calc(var(--legal) + 48px); margin: 0 auto; padding: 0 24px 80px; }
section { padding: 72px 0; }
#features, #compare, #pricing, #faq { scroll-margin-top: 80px; }
.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.eyebrow.light { color: #93c5fd; }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 750; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 720; }
h3 { font-size: 18px; font-weight: 680; letter-spacing: -.02em; }
.lede { font-size: 18px; color: var(--muted); max-width: 42rem; margin: 0; }
.lede.center { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.section-head { margin-bottom: 36px; }
.section-head p { margin: 8px 0 0; color: var(--muted); }

/* Hero */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.hero h1 { margin-top: 14px; }
.hero .lede { margin-top: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 16px; }
.positioning { color: var(--muted); font-size: 14.5px; margin: 0; }
.positioning strong { color: var(--text); font-weight: 650; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.pills li { background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 550; padding: 5px 11px; border-radius: 999px; }
.hero-shot { background: linear-gradient(180deg, #fff 0%, #eef2ff 100%); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.hero-shot img { width: 100%; }

/* Feature blocks */
.features { padding-top: 40px; }
.feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.feature:last-child { margin-bottom: 0; }
.feature.reverse { grid-template-columns: 1.1fr 0.9fr; }
.feature.reverse .feature-copy { order: 2; }
.feature-copy .lede { font-size: 16.5px; }
.feature-shot { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px -20px rgba(15, 23, 42, .4); }
.check { list-style: none; padding: 0; margin: 18px 0 0; }
.check li { position: relative; padding: 5px 0 5px 26px; color: var(--muted); }
.check li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' stroke='%2315803d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border-radius: 50%; }

/* Compare */
.compare { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.compare-table thead th { background: var(--bg); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); font-weight: 700; position: sticky; top: var(--header-h); z-index: 2; }
.compare-table tbody th { font-weight: 550; color: var(--text); width: 42%; }
.compare-table td { color: var(--muted); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table .price { font-size: 22px; font-weight: 750; color: var(--text); letter-spacing: -.03em; }
.compare-table .price span { font-size: 13px; font-weight: 550; color: var(--faint); letter-spacing: 0; }
.yes { color: var(--green); font-weight: 650; }
.no { color: var(--faint); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--blue-50); color: var(--blue); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: #93c5fd; box-shadow: 0 0 0 3px var(--blue-50), var(--shadow); }
.plan .plan-name { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.plan .amount { font-size: 40px; font-weight: 750; letter-spacing: -.04em; line-height: 1; margin: 0 0 6px; }
.plan .amount em { font-style: normal; font-size: 18px; font-weight: 650; }
.plan .bill { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.plan .check { flex: 1; margin: 0 0 22px; }
.fine { font-size: 13px; color: var(--faint); margin: 12px 0 0; }
.trust { margin-top: 28px; text-align: center; color: var(--muted); font-size: 13.5px; max-width: 36rem; margin-left: auto; margin-right: auto; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.faq-list summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--faint); font-weight: 500; font-size: 20px; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 16px; color: var(--muted); }
.faq-list details a { font-weight: 550; }

/* Legal pages */
.legal-hero { padding: 48px 0 8px; }
.legal-hero .meta { color: var(--faint); font-size: 14px; margin: 0; }
.legal { padding-top: 16px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal h3 { font-size: 16px; margin: 22px 0 8px; }
.legal p, .legal li { color: #1e293b; }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal .callout { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 12px; padding: 14px 16px; color: var(--text); }
.crumb { font-size: 13px; color: var(--faint); margin-bottom: 16px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--blue); }

/* Footer */
.footer { background: var(--navy); color: #cbd5e1; padding: 48px 0 28px; margin-top: auto; }
.footer a { color: #e2e8f0; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 28px; margin-bottom: 32px; }
.footer .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 10px; text-decoration: none; }
.footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; }
.footer h3 { color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 6px 0; font-size: 14px; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 18px; font-size: 13px; color: #94a3b8; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.ph { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

/* 404 */
.empty-page { text-align: center; padding: 96px 24px; }
.empty-page p { color: var(--muted); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 0.92fr 1.08fr; gap: 48px; }
}
@media (max-width: 899px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 20px; }
  .feature.reverse .feature-copy { order: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .table-scroll { overflow-x: visible; }
  .compare-table { min-width: 0; font-size: 12.5px; }
  .compare-table th, .compare-table td { padding: 10px 8px; }
  .compare-table tbody th { width: auto; }
  .compare-table .price { font-size: 17px; }
  .compare-table .price span { display: block; font-size: 11px; }
  .compare-table thead th { font-size: 11px; }
  .tag { display: block; margin: 4px 0 0 0; vertical-align: 0; }
  .header-inner { padding: 0 16px; }
  .wrap, .legal-wrap { padding-left: 16px; padding-right: 16px; }
  .nav, .header-actions .btn-ghost { display: none; }
  .header-actions .btn { padding: 8px 10px; font-size: 13px; }
  .menu-toggle { display: block; margin-left: auto; position: relative; }
  .menu-toggle .header-actions { display: none; }
  .menu-toggle[open] .mobile-panel { display: flex; }
  .mobile-panel { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 220px; flex-direction: column; box-shadow: var(--shadow); }
  .mobile-panel a { color: var(--text); text-decoration: none; font-weight: 550; font-size: 14px; padding: 10px 12px; border-radius: 8px; }
  .mobile-panel a:hover { background: var(--bg); }
  .mobile-panel .btn { margin: 6px 8px; }
  section, .hero { padding-top: 40px; padding-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 auto; }
}
