/* TabKite website */
:root {
  color-scheme: dark;
  --bg: #0b0f14; --bg-2: #0f141b; --surface: #141a22; --surface-2: #19212b;
  --line: #242d38; --line-2: #313d4b;
  --text: #e8edf3; --text-2: #c3ccd6; --muted: #8b96a3;
  --accent: #f0b90b; --accent-ink: #141414; --blue: #58a6ff; --up: #2fbf71; --down: #f0525f;
  --radius: 14px; --max: 1160px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 20, .82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: 8px; color: var(--accent-ink); }
.nav .btn:hover { background: #ffc928; color: var(--accent-ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; width: 42px; height: 38px; font-size: 20px; cursor: pointer; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 12px 20px; border-radius: 10px; border: 0; cursor: pointer; font-size: 15.5px; line-height: 1.2; white-space: nowrap; }
.btn:hover { text-decoration: none; background: #ffc928; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--muted); background: var(--surface); }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── sections ── */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* hero */
.hero { padding: 76px 0 64px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 900px; height: 700px; background: radial-gradient(closest-side, rgba(88, 166, 255, .16), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -15%; width: 700px; height: 600px; background: radial-gradient(closest-side, rgba(240, 185, 11, .09), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 18px 0 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 14.5px; }
.hero-meta span::before { content: "✓"; color: var(--up); font-weight: 800; margin-right: 6px; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02); background: #0d1117; }
.shot.tilt { transform: perspective(1400px) rotateY(-8deg) rotateX(2deg); }
.stack-shots { position: relative; min-height: 520px; }
.stack-shots .s1 { position: absolute; right: 0; top: 0; width: 78%; }
.stack-shots .s2 { position: absolute; left: 0; bottom: 0; width: 56%; z-index: 2; }

/* cards & grids */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); border: 1px solid var(--line-2); margin-bottom: 16px; }
.card.link { display: block; color: var(--text); transition: border-color .15s, transform .15s; }
.card.link:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature.rev .feature-text { order: 2; }
.feature-text ul { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-text li { padding: 7px 0 7px 30px; position: relative; color: var(--text-2); }
.feature-text li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
.feature .shot { max-width: 520px; justify-self: center; }
.pro-tag { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; background: var(--accent); color: var(--accent-ink); border-radius: 5px; padding: 1px 7px; vertical-align: 3px; margin-left: 6px; }
.free-tag { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; background: rgba(47, 191, 113, .16); color: #7ee2a8; border: 1px solid rgba(47, 191, 113, .4); border-radius: 5px; padding: 0 7px; vertical-align: 3px; margin-left: 6px; }

/* stats / trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.trust b { display: block; font-size: 16px; margin-bottom: 2px; }
.trust span { color: var(--muted); font-size: 14px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 20px 60px rgba(240, 185, 11, .08); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 30px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 18px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.price small { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; color: var(--text-2); font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--up); font-weight: 800; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "–"; color: var(--muted); }
.plan .btn { justify-content: center; }
.alt-pay { margin-top: 22px; padding: 18px 22px; border: 1px dashed var(--line-2); border-radius: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.cmp th, table.cmp td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; }
table.cmp thead th { background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.cmp td:not(:first-child), table.cmp th:not(:first-child) { text-align: center; width: 120px; }
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp.perm { min-width: 0; }
table.cmp.perm td:not(:first-child), table.cmp.perm th:not(:first-child) { text-align: left; width: auto; }
table.cmp.perm td:first-child { white-space: nowrap; width: 1%; }
table.cmp .y { color: var(--up); font-weight: 800; }
table.cmp .n { color: var(--muted); }
table.cmp tr.group td { background: var(--bg-2); font-weight: 700; color: var(--text-2); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { counter-increment: s; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 17px; }
.step p { color: var(--text-2); font-size: 15px; margin: 0; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--text-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* docs / legal */
.page-hero { padding: 64px 0 32px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 48px); }
.page-hero .lead { margin-top: 10px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 48px 0 84px; }
.toc { position: sticky; top: 90px; align-self: start; font-size: 14.5px; }
.toc b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; color: var(--text-2); padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 48px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose code, .kbd { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.prose td:first-child { white-space: nowrap; color: var(--text); font-weight: 600; }
.note { border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 10px; padding: 14px 18px; margin: 0 0 1.4em; color: var(--text-2); }
.note.blue { border-left-color: var(--blue); }
.updated { color: var(--muted); font-size: 14px; }

/* changelog */
.release { border-left: 2px solid var(--line-2); padding: 0 0 36px 28px; position: relative; }
.release::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.release h2 { margin: 0 0 4px !important; font-size: 24px; }
.release .date { color: var(--muted); font-size: 14px; margin-bottom: 12px; display: block; }

/* contact */
.contact-card { display: flex; gap: 18px; align-items: flex-start; }
.contact-card .icon { flex: none; margin: 0; }

/* claim form */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-width: 620px; }
.form-card label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.form-card input { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 14px; font: 16px var(--mono); }
.form-card input:focus { outline: none; border-color: var(--accent); }
.form-card .btn { margin-top: 14px; }
.keybox { font: 700 21px var(--mono); letter-spacing: .04em; background: var(--bg); border: 1px dashed var(--accent); border-radius: 10px; padding: 16px; text-align: center; margin: 16px 0 10px; word-break: break-all; }
.err { color: #ff9aa2; margin-top: 12px; }

/* CTA band */
.cta { text-align: center; padding: 72px 24px; border-radius: 22px; background: radial-gradient(600px 300px at 50% 0%, rgba(240, 185, 11, .14), transparent 70%), var(--surface); border: 1px solid var(--line-2); }
.cta .btn-row { justify-content: center; margin-top: 24px; }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; margin-top: 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--text-2); padding: 4px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-brand p { color: var(--muted); margin-top: 12px; max-width: 320px; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13.5px; }
.foot-legal { color: var(--muted); font-size: 12.5px; margin-top: 14px; line-height: 1.6; }

/* ── responsive ── */

/* ── product sub-navigation (pages under /<product>/) ── */
.pnav { position: sticky; top: 67px; z-index: 40; background: rgba(15, 20, 27, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pnav .wrap { display: flex; align-items: center; gap: 18px; height: 52px; }
.pnav-name { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; white-space: nowrap; }
.pnav-name:hover { text-decoration: none; }
.pnav-name img { width: 24px; height: 24px; border-radius: 6px; }
.pnav nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.pnav nav::-webkit-scrollbar { display: none; }
.pnav nav a { color: var(--muted); padding: 6px 11px; border-radius: 7px; font-size: 14px; white-space: nowrap; }
.pnav nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.pnav nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.has-pnav { scroll-padding-top: 136px; }
.has-pnav .toc { top: 136px; }

/* ── product cards (generated from products.json) ── */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; gap: 14px; }
.pcard-head { display: flex; align-items: center; gap: 14px; }
.pcard-head img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.pcard-head h3 { margin: 0; }
.pcard-cat { font-size: 13px; color: var(--muted); }
.pcard p { margin: 0; }
.pcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--line); }
.pcard-price { font-size: 14px; color: var(--text-2); }
.pcard-go { font-size: 14px; font-weight: 600; color: var(--accent); }
.status { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); }
.status.beta { color: var(--blue); border-color: rgba(88, 166, 255, .4); }
.pcard.soon { opacity: .8; border-style: dashed; }
.pcard.idea { border-style: dashed; background: transparent; justify-content: center; }

@media (max-width: 1000px) {
  .hero .wrap, .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.rev .feature-text { order: 0; }
  .g3, .g4, .plans, .steps, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc b { width: 100%; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stack-shots { min-height: 0; }
  .stack-shots .s1, .stack-shots .s2 { position: static; width: 100%; }
  .stack-shots .s2 { display: none; }
  .shot.tilt { transform: none; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .g2, .g3, .g4, .plans, .steps, .trust { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .card, .plan { padding: 22px; }
  .prose table { display: block; overflow-x: auto; }
  .prose td:first-child { white-space: normal; min-width: 110px; }
  .pnav { top: 66px; }
  .pnav .wrap { gap: 10px; }
  .pnav-name span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card.link { transition: none; } }
