/* ──────────────────────────────────────────────────────────────────────────
   site.css — shared styles for Trackr marketing pages (Product / Pricing / Docs)
   Palette + typography mirror the sign-in page (index.html) for a cohesive look.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #F2F1EB;
  --panel: #FFFFFF;
  --slate: #18191E;
  --slate-2: #25272E;
  --border: #E6E3D9;
  --border-strong: #D6D2C5;
  --ink: #18191E;
  --ink-2: #3B3D44;
  --muted: #74736B;
  --muted-2: #A5A399;
  --accent: #0E7A74;
  --accent-ink: #0A5A55;
  --green: #0E7A74;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 36px; }

/* ── Top brand bar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,241,235,0.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 36px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-head { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--slate);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-name {
  font-weight: 600; font-size: 14.5px;
  color: var(--ink); letter-spacing: -0.005em; line-height: 1.1;
}
.brand-name .r { color: inherit; }
.brand-org {
  display: block; font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--muted);
  text-transform: uppercase; margin-top: 3px;
}
.topbar nav { display: flex; align-items: center; gap: 22px; font-size: 13.5px; }
.topbar nav a { color: var(--muted); }
.topbar nav a:hover { color: var(--ink); }
.topbar nav a.active { color: var(--ink); font-weight: 600; }
.topbar nav .cta {
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-2); font-weight: 500;
}
.topbar nav .cta:hover { background: var(--bg); }
.topbar nav .cta-solid {
  padding: 7px 15px; border-radius: 7px;
  background: var(--accent); color: #fff; font-weight: 600;
  border: 1px solid var(--accent);
}
.topbar nav .cta-solid:hover { background: var(--accent-ink); }

/* ── Hero / section scaffolding ── */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 56px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(24,25,30,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,25,30,0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--accent-ink); text-transform: uppercase;
  background: rgba(14,122,116,0.08);
  border: 1px solid rgba(14,122,116,0.2);
  padding: 5px 11px; border-radius: 999px;
  margin-bottom: 20px;
}

h1.display {
  font-family: var(--font-display);
  font-size: 44px; line-height: 1.08; font-weight: 600;
  letter-spacing: -0.03em; color: var(--ink);
  margin: 0 auto 18px; max-width: 16ch;
}
h1.display .accent { color: var(--accent); }
.lede {
  font-size: 17px; color: var(--muted); max-width: 56ch;
  margin: 0 auto 28px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; font-size: 14.5px; font-weight: 600;
  border-radius: 9px; border: 1px solid transparent; transition: all .14s;
}
.btn-primary {
  color: #fff; background: var(--accent); border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 1px 0 rgba(24,25,30,0.04);
}
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  color: var(--ink-2); background: #fff; border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg); border-color: var(--border-strong); }

section.block { padding: 56px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 600; letter-spacing: -0.025em;
  color: var(--ink); margin: 0 0 12px;
}
.section-head p { font-size: 16px; color: var(--muted); margin: 0; }

/* ── Feature grid ── */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.feature {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.feature:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 30px -16px rgba(24,25,30,0.12);
  transform: translateY(-2px);
}
.feature .ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(14,122,116,0.1); color: var(--accent-ink);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature .ico svg { width: 19px; height: 19px; }
.feature h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--ink); }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 22px 22px 22px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.step .num {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 13px;
  font-family: var(--font-mono); margin-bottom: 14px;
}
.step h3 { font-size: 15.5px; font-weight: 600; margin: 0 0 6px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.pricing-grid.four { grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1100px) { .pricing-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .pricing-grid, .pricing-grid.four { grid-template-columns: 1fr; } }
/* Billing cadence toggle */
.cadence-toggle { display: inline-flex; gap: 4px; padding: 4px; margin: 0 auto 26px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; }
.cadence-toggle { display: flex; width: max-content; }
.wrap > .cadence-toggle { margin-left: auto; margin-right: auto; }
.ct-btn { border: none; background: transparent; padding: 8px 18px; border-radius: 999px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ct-btn.active { background: var(--accent); color: #fff; font-weight: 600; }
.ct-save { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(14,122,116,0.12); color: var(--accent-ink); }
.ct-btn.active .ct-save { background: rgba(255,255,255,0.22); color: #fff; }
.price-note { text-align: center; font-size: 14px; color: var(--muted); margin: 26px 0 0; }
.price-note a { color: inherit; text-decoration: underline; }
.plan {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 26px;
  display: flex; flex-direction: column;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 20px 50px -24px rgba(14,122,116,0.4);
  position: relative;
}
.plan .badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.plan .pname { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.plan .price { font-family: var(--font-display); font-size: 38px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.plan .price .per { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .ptag { font-size: 14px; color: var(--muted); margin: 10px 0 22px; min-height: 40px; }
.plan ul.flist { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.plan ul.flist li { display: flex; gap: 9px; font-size: 14px; color: var(--ink-2); }
.plan ul.flist li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.plan .btn { width: 100%; margin-top: auto; }

/* ── Comparison / FAQ ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: 12px;
  background: #fff; padding: 0 18px; margin-bottom: 10px;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  font-weight: 600; font-size: 15px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }

/* ── Docs layout ── */
.docs-shell { display: grid; grid-template-columns: 220px 1fr; gap: 44px; padding: 44px 0 72px; }
.docs-nav { position: sticky; top: 90px; align-self: start; font-size: 14px; }
.docs-nav h4 { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin: 22px 0 10px; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: 5px 0; color: var(--muted); }
.docs-nav a:hover { color: var(--ink); }
.docs-main { min-width: 0; }
.docs-main h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 48px 0 14px; scroll-margin-top: 90px; }
.docs-main h2:first-child { margin-top: 0; }
.docs-main h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.docs-main p { color: var(--ink-2); margin: 0 0 14px; }
.docs-main ul, .docs-main ol { color: var(--ink-2); margin: 0 0 14px; padding-left: 22px; }
.docs-main li { margin-bottom: 6px; }
.docs-main code { font-family: var(--font-mono); font-size: 13px; background: #F8F7F2; border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
.docs-main .callout {
  border: 1px solid rgba(14,122,116,0.25); background: rgba(14,122,116,0.06);
  border-radius: 12px; padding: 16px 18px; margin: 0 0 20px;
}
.docs-main .callout strong { color: var(--accent-ink); }
.lead-in { font-size: 17px; color: var(--muted); margin: 0 0 8px; }

/* ── Single-column prose (legal / support) ── */
.prose-wrap { max-width: 760px; margin: 0 auto; padding: 56px 0 72px; }
.prose-wrap .updated { font-size: 13px; color: var(--muted-2); margin: 0 0 36px; }
.prose-wrap h1.display { text-align: left; margin: 0 0 8px; max-width: none; font-size: 38px; }

/* ── Status page ── */
.status-banner {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 14px; padding: 22px 24px; margin: 0 0 32px;
}
.status-banner .pulse {
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(14,122,116,0.5);
  animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14,122,116,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(14,122,116,0); }
  100% { box-shadow: 0 0 0 0 rgba(14,122,116,0); }
}
.status-banner h2 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.status-banner p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.status-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.status-list li { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-top: 1px solid var(--border); font-size: 14.5px; }
.status-list li:first-child { border-top: 0; }
.status-list .name { color: var(--ink); font-weight: 500; }
.status-list .ok { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-ink); font-size: 13.5px; font-weight: 500; }
.status-list .ok .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ── Support contact cards ── */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 0 0 8px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.contact-card .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(14,122,116,0.1); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 14px; }
.contact-card .ico svg { width: 19px; height: 19px; }
.contact-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.contact-card p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.contact-card a.link { color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.contact-card a.link:hover { text-decoration: underline; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── CTA band ── */
.cta-band { text-align: center; padding: 64px 0; }
.cta-band h2 { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 12px; }
.cta-band p { font-size: 16px; color: var(--muted); margin: 0 0 24px; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 36px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .grid.cols-3, .grid.cols-2, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: none; }
}
@media (max-width: 640px) {
  .wrap, .topbar-inner, .footer-inner { padding-left: 20px; padding-right: 20px; }
  h1.display { font-size: 34px; }
  .topbar nav { gap: 14px; }
  .topbar nav a:not(.cta):not(.cta-solid) { display: none; }
}
