/* TabHarbor marketing site — brand-consistent with the extension.
   Tokens mirror extension design (brand blue #1A6CF2). Static, no build step. */
:root {
  --brand: #1a6cf2;
  --brand-hover: #1558d6;
  --brand-subtle: #eef3fb;
  --ink: #0f172a;
  --muted: #5b6677;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --danger: #dc2626;
  --ok: #0f8a4d;
  --ok-subtle: #e7f6ee;
  --ok-ink: #0b5c34;
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a:not(.btn) { color: var(--muted); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }

/* Hero */
.hero { padding: 88px 0 64px; background:
  radial-gradient(900px 400px at 50% -120px, var(--brand-subtle), transparent); text-align: center; }
.hero .badge {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand);
  background: var(--brand-subtle); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.sub { font-size: clamp(17px, 2.5vw, 21px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fineprint { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Sections */
.joined-banner { background: var(--ok-subtle); border-bottom: 1px solid var(--ok); color: var(--ok-ink); }
.joined-banner .wrap { padding: 12px 24px; font-size: 15px; text-align: center; }
.joined-banner strong { color: var(--ok-ink); }
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
section.block.alt { background: var(--bg-alt); }
.block h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.01em; margin: 0 0 12px; }
.block .lead { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 0 36px; }
.block.center { text-align: center; }
.block.center .lead { margin-left: auto; margin-right: auto; margin-bottom: 24px; }
.block.center .cta-row { justify-content: center; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--brand); box-shadow: 0 8px 30px rgba(26, 108, 242, 0.07); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ic { color: var(--brand); margin-bottom: 12px; display: block; line-height: 0; }

/* Ladder table */
.ladder { width: 100%; border-collapse: collapse; font-size: 15px; }
.ladder th, .ladder td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ladder th { color: var(--muted); font-weight: 600; }
.ladder tr td:first-child { font-weight: 600; white-space: nowrap; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; max-width: 720px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--brand);
  color: #fff; font-weight: 700; display: grid; place-items: center;
}
.step h3 { margin: 2px 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); }

/* Pricing */
.price-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 760px; align-items: stretch; }
.price {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; background: #fff;
  display: flex; flex-direction: column;
}
.price.featured { border-color: var(--brand); box-shadow: 0 10px 40px rgba(26,108,242,.1); position: relative; }
.price h3 { margin: 0 0 4px; }
.price .tag { font-size: 13px; color: var(--brand); font-weight: 600; }
.price .amt { font-size: 34px; font-weight: 800; margin: 14px 0 4px; letter-spacing: -0.02em; }
.price .amt .per { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price ul { margin: 16px 0 0; padding: 0; list-style: none; }
.price li { padding: 6px 0 6px 26px; position: relative; color: var(--ink); font-size: 15px; }
.price li::before { content: "✓"; color: var(--brand); position: absolute; left: 0; font-weight: 700; }
.price .soon { color: var(--muted); font-weight: 600; font-size: 13px; }
.price .price-cta { margin-top: auto; padding-top: 20px; }
.price .micro { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.price-4 { max-width: var(--maxw); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .price-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-4 { grid-template-columns: 1fr; } }
.price .ribbon {
  position: absolute; top: -12px; right: 18px; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(26,108,242,.3);
}

/* Billing toggle */
.bill-toggle {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 28px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
}
.bt-opt {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600;
  font-size: 14px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s;
}
.bt-opt.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.bt-opt .save {
  font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-subtle);
  padding: 2px 8px; border-radius: 999px;
}

/* Trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 14px; }
.trust span {
  font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-weight: 500;
}

/* Prose (legal pages) */
.prose { max-width: 760px; padding: 56px 0; }
.prose h1 { font-size: 34px; margin: 0 0 6px; }
.prose .meta { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.prose h2 { margin: 34px 0 10px; font-size: 22px; }
.prose p, .prose li { color: #1f2937; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose .draft {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  padding: 12px 16px; border-radius: 10px; font-size: 14px; margin: 0 0 24px;
}

/* Hero product shot */
.hero-shot { margin: 44px auto 0; max-width: 920px; }
.hero-shot img, .hero-shot video {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

/* "See it work" player */
.player { max-width: 920px; margin: 0 auto; }
.player-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 18px; }
.pt {
  border: 1px solid var(--line); background: #fff; color: var(--muted); font: inherit;
  font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.pt:hover { color: var(--ink); border-color: var(--brand); }
.pt.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.player .hero-shot { margin: 0 auto; }
.player-cap { text-align: center; margin-top: 14px; }

/* Waitlist form */
.waitlist { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 460px; margin: 0 auto; }
.waitlist input {
  flex: 1 1 240px; min-width: 0; padding: 12px 16px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.waitlist input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-subtle); }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist + .micro { margin-top: 12px; }

/* Comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { min-width: 640px; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 92px; }
.compare tr td:first-child { white-space: normal; font-weight: 500; }
.compare th:nth-child(2), .compare td:nth-child(2) { background: var(--brand-subtle); }
.compare td:nth-child(2) { color: var(--brand); font-weight: 700; }
.compare td:nth-child(n+3) { color: var(--muted); }
.compare small { display: block; font-weight: 500; font-size: 11px; opacity: .85; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 17px; list-style: none;
  position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: -2px;
  font-size: 22px; font-weight: 400; color: var(--muted);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* "soon" pill */
.tag-soon {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
  padding: 1px 7px; vertical-align: middle;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); margin-right: 18px; font-size: 14px; }
.site-footer .copy { color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
  .site-header .wrap { height: auto; flex-wrap: wrap; row-gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .nav { gap: 12px 14px; flex-wrap: wrap; }
  .nav a:not(.btn) { font-size: 14px; }
  .nav .btn { padding: 8px 14px; font-size: 14px; }
  .hero { padding: 40px 0 40px; }
}
