/* ===========================================================
   PubMed Tracker — shared stylesheet
   Design system: "Signal" — bright, flat, confident.
   No frameworks, no build step. Plain CSS custom properties
   for theming; system font stack (no external font requests).
   =========================================================== */

:root{
  --bg:#FFFFFF;
  --bg-soft:#F5F6F8;
  --bg-soft-2:#EEF0F4;
  --ink:#0E1116;
  --ink-soft:#5B6470;
  --ink-faint:#8B93A0;
  --line:#E6E8EC;
  --line-strong:#D3D7DE;
  --cobalt:#2B4CF0;
  --cobalt-ink:#FFFFFF;
  --cobalt-dim:#2B4CF00f;
  --cobalt-dim-strong:#2B4CF01f;
  --lime:#B6FF3C;
  --lime-ink:#0E1116;
  --danger:#C0392B;
  --danger-dim:#C0392B12;
  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:20px;
  --shadow-card:0 1px 2px rgba(14,17,22,.04), 0 12px 32px -18px rgba(14,17,22,.18);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg:#0D0F13; --bg-soft:#14171D; --bg-soft-2:#191D24; --ink:#F1F2F4; --ink-soft:#9AA2AC;
    --ink-faint:#666E7A; --line:#242832; --line-strong:#323844;
    --cobalt:#5E7BFF; --cobalt-ink:#0D0F13; --cobalt-dim:#5E7BFF14; --cobalt-dim-strong:#5E7BFF26;
    --lime:#C6FF5C; --lime-ink:#0E1116; --danger:#FF6B5E; --danger-dim:#FF6B5E1a;
    --shadow-card:0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"]{
  --bg:#0D0F13; --bg-soft:#14171D; --bg-soft-2:#191D24; --ink:#F1F2F4; --ink-soft:#9AA2AC;
  --ink-faint:#666E7A; --line:#242832; --line-strong:#323844;
  --cobalt:#5E7BFF; --cobalt-ink:#0D0F13; --cobalt-dim:#5E7BFF14; --cobalt-dim-strong:#5E7BFF26;
  --lime:#C6FF5C; --lime-ink:#0E1116; --danger:#FF6B5E; --danger-dim:#FF6B5E1a;
  --shadow-card:0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.6);
}
:root[data-theme="light"]{
  --bg:#FFFFFF; --bg-soft:#F5F6F8; --bg-soft-2:#EEF0F4; --ink:#0E1116; --ink-soft:#5B6470;
  --ink-faint:#8B93A0; --line:#E6E8EC; --line-strong:#D3D7DE;
  --cobalt:#2B4CF0; --cobalt-ink:#FFFFFF; --cobalt-dim:#2B4CF00f; --cobalt-dim-strong:#2B4CF01f;
  --lime:#B6FF3C; --lime-ink:#0E1116; --danger:#C0392B; --danger-dim:#C0392B12;
  --shadow-card:0 1px 2px rgba(14,17,22,.04), 0 12px 32px -18px rgba(14,17,22,.18);
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ margin:0; padding:0; }
body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
::selection{ background:var(--lime); color:#0E1116; }
:focus-visible{ outline:2px solid var(--cobalt); outline-offset:2px; border-radius:4px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
}

.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }
.wrap-narrow{ max-width:760px; margin:0 auto; padding:0 32px; }

/* ---------- Header ---------- */
header.site-header{
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:30;
  background:color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:18px 0; gap:24px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:17px; letter-spacing:-.01em; text-decoration:none; white-space:nowrap; }
.brand img{ width:28px; height:28px; border-radius:7px; }
nav.links{ display:flex; gap:30px; font-size:14.5px; font-weight:500; color:var(--ink-soft); }
nav.links a{ text-decoration:none; }
nav.links a:hover{ color:var(--ink); }
nav.links a.current{ color:var(--cobalt); }
.nav-actions{ display:flex; align-items:center; gap:10px; }
.nav-toggle{ display:none; }

.btn{
  font-size:14.5px; font-weight:700; text-decoration:none; padding:11px 20px;
  border-radius:var(--radius-sm); display:inline-block; border:1.5px solid transparent;
  cursor:pointer; font-family:var(--sans); transition:transform .12s ease, opacity .12s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--cobalt); color:var(--cobalt-ink); }
.btn-primary:hover{ opacity:.92; }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line-strong); }
.btn-ghost:hover{ background:var(--bg-soft); }
.btn-sm{ padding:8px 14px; font-size:13.5px; }
.btn-lg{ padding:15px 28px; font-size:15.5px; }
.btn-lime{ background:var(--lime); color:var(--lime-ink); }

/* theme toggle */
.theme-toggle{
  width:36px; height:36px; border-radius:50%; border:1.5px solid var(--line-strong);
  background:var(--bg); display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:15px; flex:none;
}
.theme-toggle:hover{ background:var(--bg-soft); }

/* ---------- Hero ---------- */
.hero{ padding:84px 0 0; overflow:hidden; }
.hero-inner{ text-align:center; max-width:760px; margin:0 auto; }
.badge{
  display:inline-flex; align-items:center; gap:8px; background:var(--bg-soft);
  border:1px solid var(--line); border-radius:20px; padding:6px 14px; font-size:13px;
  font-weight:600; color:var(--ink-soft); margin-bottom:28px;
}
.badge .sq{ width:8px; height:8px; background:var(--lime); border-radius:2px; flex:none; }
h1{ font-size:clamp(38px,6vw,68px); line-height:1.04; font-weight:800; letter-spacing:-.035em; margin:0 0 22px; text-wrap:balance; }
h1 mark{ background:var(--cobalt); color:var(--cobalt-ink); padding:0 10px; border-radius:8px; white-space:nowrap; }
.lede{ font-size:18.5px; color:var(--ink-soft); max-width:52ch; margin:0 auto 34px; text-wrap:balance; }
.hero-cta{ display:flex; gap:14px; align-items:center; justify-content:center; margin-bottom:16px; flex-wrap:wrap; }
.fineprint{ font-size:13.5px; color:var(--ink-faint); margin-bottom:60px; }

/* product shot */
.shot{ background:var(--bg-soft); border:1px solid var(--line); border-radius:20px 20px 0 0; padding:26px 26px 0; max-width:980px; margin:0 auto; }
.shot-toolbar{ display:flex; gap:8px; margin-bottom:18px; padding-left:2px; }
.shot-toolbar span{ width:10px; height:10px; border-radius:50%; background:var(--line-strong); }
.shot-panel{ background:var(--bg); border:1px solid var(--line); border-radius:12px 12px 0 0; padding:22px; display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.shot-card{ border:1px solid var(--line); border-radius:10px; padding:16px; }
.shot-pmid{ font-family:var(--mono); font-size:10.5px; color:var(--ink-faint); margin-bottom:8px; }
.shot-title{ font-size:13.5px; font-weight:600; margin-bottom:14px; line-height:1.35; min-height:36px; }
.shot-pill{ display:inline-block; font-size:10.5px; font-weight:700; padding:4px 9px; border-radius:20px; background:var(--cobalt-dim-strong); color:var(--cobalt); }
.shot-pill.lime{ background:color-mix(in srgb, var(--lime) 28%, transparent); color:#5C7A00; }
@media (prefers-color-scheme: dark){ .shot-pill.lime{ color:var(--lime); } }
:root[data-theme="dark"] .shot-pill.lime{ color:var(--lime); }
:root[data-theme="light"] .shot-pill.lime{ color:#5C7A00; }

@media (max-width:820px){
  .shot-panel{ grid-template-columns:1fr; }
}

/* ---------- Sections ---------- */
section{ padding:76px 0; }
section.tight{ padding:56px 0; }
.section-head{ text-align:center; max-width:640px; margin:0 auto 48px; }
.section-head.left{ text-align:left; margin:0 0 44px; }
.section-label{ font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--cobalt); margin-bottom:14px; }
h2{ font-size:clamp(27px,4vw,38px); font-weight:800; letter-spacing:-.02em; margin:0 0 12px; text-wrap:balance; }
h3{ font-size:18px; font-weight:700; letter-spacing:-.01em; margin:0 0 8px; }
.section-sub{ color:var(--ink-soft); font-size:16.5px; }

/* feature grid */
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:2px; background:var(--line); border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.feature{ background:var(--bg); padding:32px 28px; }
.feature .icon{ width:40px; height:40px; border-radius:10px; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; font-size:18px; margin-bottom:18px; }
.feature h3{ font-size:16.5px; margin:0 0 9px; }
.feature p{ font-size:14.5px; color:var(--ink-soft); margin:0; }
@media (max-width:900px){ .feature-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .feature-grid{ grid-template-columns:1fr; } }

/* how it works */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; counter-reset:step; }
.step{ position:relative; padding-top:8px; }
.step::before{ counter-increment:step; content:counter(step); font-family:var(--mono); font-size:13px; font-weight:700; color:var(--cobalt); background:var(--cobalt-dim-strong); width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.step h3{ font-size:16px; }
.step p{ font-size:14.5px; color:var(--ink-soft); margin:0; }
@media (max-width:820px){ .steps{ grid-template-columns:1fr; gap:24px; } }

/* pricing */
.pricing-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:20px; max-width:780px; margin:0 auto; align-items:stretch; }
.plan{ border:1.5px solid var(--line); background:var(--bg); padding:32px; border-radius:16px; display:flex; flex-direction:column; }
.plan.pro{ border-color:var(--cobalt); background:var(--cobalt-dim); position:relative; }
.pricing-wrap:not(.single) .plan.pro::before{ content:'MOST POPULAR'; position:absolute; top:-12px; left:28px; background:var(--cobalt); color:var(--cobalt-ink); font-size:11px; font-weight:800; letter-spacing:.05em; padding:4px 12px; border-radius:20px; }
.plan h3{ font-size:14.5px; font-weight:700; color:var(--ink-soft); margin:0 0 6px; text-transform:uppercase; letter-spacing:.03em; }
.plan .price{ font-size:42px; font-weight:800; margin:14px 0 2px; letter-spacing:-.03em; }
.plan .price small{ font-size:15px; font-weight:600; color:var(--ink-soft); }
.plan ul{ list-style:none; padding:0; margin:20px 0 26px; font-size:14.5px; flex:1; }
.plan li{ padding:8px 0; display:flex; gap:10px; align-items:flex-start; }
.plan li::before{ content:'✓'; color:var(--cobalt); font-weight:800; flex:none; }
.plan .btn{ text-align:center; width:100%; }
@media (max-width:640px){ .pricing-wrap{ grid-template-columns:1fr; } }

.pricing-wrap.single{ grid-template-columns:1fr; max-width:420px; }

.post-trial-note{
  max-width:620px; margin:28px auto 0; text-align:left; font-size:14.5px; color:var(--ink-soft);
  background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:18px 22px;
}
.post-trial-note strong{ color:var(--ink); }

.pricing-note{ text-align:center; font-size:14px; color:var(--ink-soft); max-width:560px; margin:20px auto 0; }

/* faq */
.faq{ max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.faq-item{ background:var(--bg); }
.faq-item summary{ padding:20px 24px; cursor:pointer; font-weight:700; font-size:15px; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:'+'; font-size:20px; color:var(--ink-faint); font-weight:400; flex:none; transition:transform .15s ease; }
.faq-item[open] summary::after{ transform:rotate(45deg); }
.faq-item p{ padding:0 24px 20px; margin:0; color:var(--ink-soft); font-size:14.5px; max-width:64ch; }

/* cta band */
.cta-band{ background:var(--ink); color:var(--bg); border-radius:24px; padding:64px 40px; text-align:center; }
.cta-band h2{ color:var(--bg); }
.cta-band .lede{ color:color-mix(in srgb, var(--bg) 65%, transparent); }
.cta-band .btn-primary{ background:var(--lime); color:var(--lime-ink); }

/* ---------- Footer ---------- */
footer.site-footer{ border-top:1px solid var(--line); padding:48px 0 32px; margin-top:24px; }
.foot-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:40px; }
.foot-brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:15px; margin-bottom:12px; }
.foot-brand img{ width:22px; height:22px; border-radius:6px; }
.foot-desc{ font-size:13.5px; color:var(--ink-soft); max-width:32ch; }
.foot-col h4{ font-size:12.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-faint); margin:0 0 14px; }
.foot-col ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.foot-col a{ text-decoration:none; font-size:14px; color:var(--ink-soft); }
.foot-col a:hover{ color:var(--ink); }
.foot-bottom{ border-top:1px solid var(--line); padding-top:24px; display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--ink-faint); flex-wrap:wrap; gap:12px; }
@media (max-width:820px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .foot-grid{ grid-template-columns:1fr; } }

/* ---------- Mobile nav ---------- */
@media (max-width:860px){
  nav.links{ display:none; }
  .nav-toggle{
    display:flex; align-items:center; justify-content:center; width:36px; height:36px;
    border-radius:var(--radius-sm); border:1.5px solid var(--line-strong); background:var(--bg);
    cursor:pointer; font-size:16px;
  }
  .mobile-menu{
    display:none; flex-direction:column; gap:2px; border-top:1px solid var(--line);
    background:var(--bg); padding:8px 0;
  }
  .mobile-menu.open{ display:flex; }
  .mobile-menu a{ padding:14px 32px; text-decoration:none; font-size:15px; font-weight:600; color:var(--ink); }
  .mobile-menu a:hover{ background:var(--bg-soft); }
}
@media (min-width:861px){
  .nav-toggle, .mobile-menu{ display:none !important; }
}

/* Keep the header from overflowing on narrow phones: shrink the chrome
   around it before anything is allowed to wrap or push off-screen. */
@media (max-width:480px){
  .wrap{ padding:0 16px; }
  .nav{ padding:14px 0; gap:10px; }
  .brand{ font-size:15px; gap:8px; }
  .brand img{ width:24px; height:24px; }
  .nav-actions{ gap:6px; }
  .theme-toggle{ width:32px; height:32px; font-size:13px; }
  .nav-actions .btn-sm{ padding:8px 12px; font-size:13px; white-space:nowrap; }
  .nav-toggle{ width:32px; height:32px; font-size:14px; }
}

/* ---------- Long-form / legal document pages ---------- */
.doc-hero{ padding:60px 0 20px; }
.doc-hero .eyebrow{ font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--cobalt); margin-bottom:14px; }
.doc-hero h1{ font-size:clamp(32px,5vw,46px); text-align:left; margin:0 0 14px; }
.doc-hero .updated{ color:var(--ink-faint); font-size:14px; }

.doc-body{ padding:20px 0 80px; }
.doc-layout{ display:grid; grid-template-columns:220px 1fr; gap:56px; align-items:start; }
.doc-toc{ position:sticky; top:96px; border-left:2px solid var(--line); padding-left:18px; display:flex; flex-direction:column; gap:10px; }
.doc-toc a{ font-size:13.5px; color:var(--ink-soft); text-decoration:none; line-height:1.4; }
.doc-toc a:hover{ color:var(--ink); }
.doc-toc a.active{ color:var(--cobalt); font-weight:700; }

.prose{ max-width:68ch; font-size:16px; color:var(--ink); }
.prose h2{ font-size:22px; margin:44px 0 14px; text-align:left; letter-spacing:-.01em; }
.prose h2:first-child{ margin-top:0; }
.prose h3{ font-size:17px; margin:28px 0 10px; }
.prose p{ color:var(--ink-soft); margin:0 0 16px; }
.prose ul, .prose ol{ color:var(--ink-soft); margin:0 0 16px; padding-left:22px; }
.prose li{ margin-bottom:8px; }
.prose a{ color:var(--cobalt); text-decoration:underline; text-underline-offset:2px; }
.prose strong{ color:var(--ink); }
.prose .callout{
  border:1px solid var(--line); background:var(--bg-soft); border-radius:12px;
  padding:18px 20px; font-size:14.5px; color:var(--ink-soft); margin:24px 0;
}
.prose .callout strong{ color:var(--ink); }
.prose table{ width:100%; border-collapse:collapse; margin:20px 0; font-size:14px; }
.prose th, .prose td{ text-align:left; padding:10px 14px; border-bottom:1px solid var(--line); color:var(--ink-soft); }
.prose th{ color:var(--ink); font-weight:700; }

@media (max-width:900px){
  .doc-layout{ grid-template-columns:1fr; }
  .doc-toc{ position:static; border-left:none; padding-left:0; flex-direction:row; flex-wrap:wrap; gap:14px 20px; border-bottom:1px solid var(--line); padding-bottom:20px; margin-bottom:8px; }
}

/* ---------- Contact / support ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.contact-card{ border:1px solid var(--line); border-radius:var(--radius-md); padding:28px; background:var(--bg); }
.contact-card h3{ margin-bottom:8px; }
.contact-card p{ color:var(--ink-soft); font-size:14.5px; margin:0 0 16px; }
@media (max-width:760px){ .contact-grid{ grid-template-columns:1fr; } }

/* ---------- Utility ---------- */
.center{ text-align:center; }
.mt-0{ margin-top:0; }
.text-soft{ color:var(--ink-soft); }
