/* TableSnap website – no external dependencies */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", system-ui, sans-serif;
  --bg: #f8fafc;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-soft: #475569;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --success: #059669;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #0f1629;
    --surface: #131b2e;
    --border: #243049;
    --text: #f1f5f9;
    --text-soft: #a3b1c6;
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-soft: rgba(99, 102, 241, 0.16);
    --success: #34d399;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.logo img { border-radius: 8px; }

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); }

.btn-small { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 72px 0 80px; }

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

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 32px;
  font-size: 21px;
  color: var(--text-soft);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: var(--text-soft);
}

.trust-list li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--success);
  font-weight: 800;
}

/* Mock side panel */
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 15px;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-title { margin-left: 8px; font-weight: 800; }

.mock-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--success);
  font-weight: 700;
  font-size: 13px;
}

.mock-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.mock-btn {
  padding: 12px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.mock-summary { display: flex; justify-content: space-between; color: var(--text-soft); }
.mock-summary strong { color: var(--text); }

.mock-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-chips span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

.mock-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mock-table th, .mock-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.mock-table th { color: var(--text-soft); font-weight: 700; }

.mock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-actions span {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.01em;
}

.section-lead {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-soft);
  font-size: 20px;
}

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

.feature {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-icon {
  display: inline-flex;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.feature h3 { margin: 0 0 10px; font-size: 21px; }
.feature p { margin: 0; color: var(--text-soft); font-size: 17px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.steps h3 { margin: 0 0 8px; font-size: 21px; }
.steps p { margin: 0; color: var(--text-soft); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }

.plan-tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.plan h3 { margin: 0 0 8px; font-size: 22px; }

.price { margin: 0; font-size: 48px; font-weight: 800; line-height: 1.1; }
.price span { font-size: 20px; font-weight: 600; color: var(--text-soft); }

.plan-note { margin: 4px 0 20px; color: var(--text-soft); font-size: 16px; }

.plan-list {
  flex: 1;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.plan-list li { padding: 7px 0 7px 28px; position: relative; font-size: 17px; }
.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

.pricing-foot {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 16px;
}

/* FAQ */
.faq { max-width: 760px; }

.faq details {
  margin-bottom: 12px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 19px;
}

.faq p { margin: 12px 0 0; color: var(--text-soft); }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.footer-brand img { border-radius: 6px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--text-soft); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

.footer-copy { width: 100%; margin: 0; color: var(--text-soft); font-size: 15px; }

/* Legal page */
.legal { max-width: 780px; padding: 56px 20px 88px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); }
.legal h2 { margin-top: 40px; font-size: 26px; }
.legal p, .legal li { color: var(--text-soft); }
.legal strong { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.legal th, .legal td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); color: var(--text); }
.updated { color: var(--text-soft); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .feature-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding-top: 48px; }
  .pricing-grid { gap: 28px; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .lead { font-size: 19px; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
  .mock-table th:nth-child(3), .mock-table td:nth-child(3) { display: none; }
  .legal table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
