/* TableScoop — official site (static, no external resources) */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8f9;
  --teal: #0d9488;
  --teal-dark: #0b7c72;
  --teal-soft: #e8f6f4;
  --amber: #b45309;
  --amber-soft: #fdf5e9;
  --radius: 14px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
          "Malgun Gothic", "Noto Sans KR", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 20;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.2px;
  color: var(--ink);
}
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.brand:hover { text-decoration: none; }
.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--teal-dark); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 380px at 78% -10%, #dff3f0 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #fbfdfd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 5px 12px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.16;
  letter-spacing: -1.1px;
  margin: 18px 0 14px;
}
.hero p.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 26px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 24px 48px -30px rgba(15, 23, 42, .35);
  overflow: hidden;
}
.hero-card .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.hero-card .bar i {
  width: 9px; height: 9px; border-radius: 50%; background: #cbd5db; display: block;
}
.hero-card .bar span { margin-left: 8px; font-size: 12px; color: var(--muted); }
.hero-card .body { padding: 16px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini-table th, .mini-table td {
  border: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
  white-space: nowrap;
}
.mini-table th { background: var(--bg-soft); color: var(--ink-2); font-weight: 650; }
.mini-table td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hero-card .foot {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 650;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .06s;
}
.btn:hover { text-decoration: none; background: var(--bg-soft); border-color: #cfd9df; }
.btn:active { transform: translateY(.5px); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-muted {
  background: var(--bg-soft);
  color: var(--muted);
  border-style: dashed;
  cursor: default;
}
.btn-muted:hover { background: var(--bg-soft); border-color: var(--line); }
.btn[disabled] { pointer-events: none; opacity: .85; }
.btn.small { font-size: 13.5px; padding: 8px 14px; border-radius: 9px; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 32px; }
.section-head h2 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -.7px;
  margin: 0 0 10px;
}
.section-head p { margin: 0; color: var(--ink-2); font-size: 16.5px; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 16.5px; margin: 0 0 8px; letter-spacing: -.2px; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.card .icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  margin-bottom: 12px;
}

/* feature table */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--bg-soft); font-size: 13.5px; color: var(--ink-2); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.c { text-align: center; white-space: nowrap; color: var(--teal-dark); font-weight: 700; }
.compare td.c.no { color: #b6c2cb; font-weight: 500; }
.compare td:first-child { color: var(--ink); font-weight: 600; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 780px; margin: 0 auto; }
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 20px 40px -34px rgba(15, 23, 42, .45);
}
.plan.featured { border-color: rgba(13, 148, 136, .45); }
.plan .tag {
  position: absolute; top: -11px; right: 20px;
  font-size: 11px; font-weight: 750; letter-spacing: .4px;
  background: var(--teal); color: #fff;
  padding: 3px 9px; border-radius: 999px;
}
.plan h3 { margin: 0 0 4px; font-size: 15px; color: var(--ink-2); font-weight: 650; }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; font-size: 14px; color: var(--ink-2); }
.plan ul li { position: relative; padding-left: 22px; margin-bottom: 7px; }
.plan ul li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  color: var(--teal); font-weight: 800;
}
.plan .btn { width: 100%; }
.plans-note { max-width: 780px; margin: 22px auto 0; font-size: 13.5px; color: var(--muted); text-align: center; }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--teal); color: #fff;
  font-size: 13px; font-weight: 750;
  margin-bottom: 10px;
}
.step h3 { font-size: 15.5px; margin: 0 0 6px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* permission list */
.perm { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.perm td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.perm tr:last-child td { border-bottom: 0; }
.perm td:first-child { font-family: var(--mono); font-size: 13px; color: var(--ink); white-space: nowrap; width: 190px; }
.perm td:last-child { color: var(--ink-2); }

.callout {
  display: flex;
  gap: 14px;
  background: var(--teal-soft);
  border: 1px solid rgba(13, 148, 136, .22);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 26px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
}
.callout strong { color: var(--ink); }
.callout .mark { font-size: 18px; line-height: 1.3; }

/* korean note */
.ko-note {
  background: var(--amber-soft);
  border: 1px solid #f0dfc4;
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 14.5px;
  color: #57370f;
}
.ko-note h3 { margin: 0 0 8px; font-size: 15px; color: #6b4412; }
.ko-note p { margin: 0 0 6px; }
.ko-note p:last-child { margin-bottom: 0; }

/* prose (policy pages) */
.prose { max-width: 760px; padding: 48px 0 72px; }
.prose h1 { font-size: 34px; letter-spacing: -.8px; margin: 0 0 6px; line-height: 1.22; }
.prose .updated { color: var(--muted); font-size: 14px; margin: 0 0 30px; }
.prose h2 {
  font-size: 20px;
  letter-spacing: -.3px;
  margin: 38px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.prose h3 { font-size: 16px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.prose .summary-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 8px;
}
.prose .summary-box ul { margin: 6px 0 0; }
.toc { font-size: 14px; color: var(--muted); margin: 0 0 26px; }
.toc a { color: var(--ink-2); }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 34px 0 44px; background: var(--bg-soft); }
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
}
.site-foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { color: var(--ink-2); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { font-size: 34px; }
  .grid-3, .steps, .plans, .grid-2 { grid-template-columns: 1fr; }
  .site-nav { gap: 12px; font-size: 13px; }
  section { padding: 48px 0; }
  .compare { font-size: 13.5px; }
  .compare th, .compare td { padding: 11px 12px; }
  .perm td:first-child { width: auto; }
  .prose { padding: 32px 0 56px; }
  .prose h1 { font-size: 28px; }
}
