/* Heardley, shared stylesheet for alternatives / for / blog SEO pages.
   Mirrors the Light & Bold tokens from the main landing page exactly so
   the brand stays consistent without 1500 lines of CSS per page. */

@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal; font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/JetBrainsMono.woff2') format('woff2');
}

:root {
  /* This is a light-only brand. Declaring the scheme stops Chromium/Brave
     "force dark" from auto-inverting the page, which was darkening the auth
     card and mangling the black wordmark into a haloed mess on mobile. */
  color-scheme: light;
  --bg: #f4f0e8;
  --bg-elev: #fafaf5;
  --bg-paper: #ffffff;
  --bg-deep: #ece7d8;
  --border: #d6cfbe;
  --border-soft: #e6e1d3;
  --ink: #0a0a0a;
  --text: #1a1a1a;
  --text-soft: #404040;
  --muted: #737373;
  --muted-soft: #a3a3a3;
  --accent: #facc15;
  --accent-deep: #ca8a04;
  --accent-soft: #fef3c7;
  --green: #15803d; --green-soft: #dcfce7;
  --red: #b91c1c; --red-soft: #fee2e2;
  --blue: #1d4ed8; --blue-soft: #dbeafe;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px;
       background: var(--bg-deep); padding: 2px 6px; border-radius: 4px; color: var(--ink); }
::selection { background: var(--accent); color: var(--ink); }

.container { max-width: 920px; margin: 0 auto; padding: 0 28px; }

/* NAV (top bar matches main landing) */
.nav {
  padding: 22px 0; border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; z-index: 40;
  background: rgba(244,240,232,.85);
  backdrop-filter: blur(12px) saturate(140%);
}
.nav-inner {
  max-width: 920px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-weight: 800; font-size: 18px; letter-spacing: -0.4px; color: var(--ink);
  display: inline-flex; align-items: center;
}
.brand .dot { color: var(--accent-deep); }
.brand-img { height: 28px; width: auto; display: block; }
.auth-brand { display: block; text-align: center; }
.auth-brand .brand-img { height: 36px; margin: 0 auto; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--text-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 9px 16px; background: var(--ink); color: var(--bg-paper);
  border-radius: 7px; font-weight: 600; font-size: 14px;
}
.nav-cta:hover { background: var(--text-soft); }
.nav-cta-group { display: flex; align-items: center; gap: 8px; }
.nav-cta-ghost {
  padding: 9px 12px; color: var(--text); font-weight: 600; font-size: 14px;
  border-radius: 7px; transition: color .15s ease, background .15s ease;
}
.nav-cta-ghost:hover { color: var(--ink); background: var(--bg-elev); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Mobile hamburger toggle. 44x44 minimum touch target. */
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  width: 44px; height: 44px; border-radius: 8px;
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle-bar {
  display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--bg-paper); border-top: 1px solid var(--border-soft);
  padding: 16px 24px; gap: 4px;
}
.mobile-nav a {
  display: block; padding: 12px 4px; font-size: 16px; color: var(--text);
  font-weight: 600; border-bottom: 1px solid var(--border-soft);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav-cta {
  display: flex; gap: 10px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.mobile-nav-cta a {
  flex: 1; text-align: center; padding: 12px 16px; border-radius: 8px;
  font-weight: 700; border-bottom: none;
}
.mobile-nav-cta .mobile-secondary {
  background: var(--bg-elev); color: var(--ink); border: 1px solid var(--border);
}
.mobile-nav-cta .mobile-primary {
  background: var(--accent); color: var(--ink); border: 1px solid var(--accent-deep);
}

@media (max-width: 720px) {
  .nav-cta-group { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open { overflow: hidden; }
  body.nav-open .mobile-nav { display: flex; }
}

/* BREADCRUMBS */
.crumbs {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; color: var(--muted);
  padding: 36px 0 0 0;
}
.crumbs a { color: var(--accent-deep); }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 8px; color: var(--muted-soft); }

/* HERO */
.page-hero { padding: 32px 0 24px; }
.eyebrow {
  display: inline-block;
  background: var(--accent-soft); color: var(--accent-deep);
  padding: 5px 11px; border-radius: 4px; font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid var(--accent);
}
.page-hero h1 {
  font-size: 44px; line-height: 1.08; letter-spacing: -1.1px;
  font-weight: 800; color: var(--ink); margin: 18px 0 18px;
  max-width: 760px;
}
.page-hero h1 .accent {
  background-image: linear-gradient(180deg, var(--accent), var(--accent));
  background-size: 100% 0.55em;
  background-position: 0 90%;
  background-repeat: no-repeat;
  padding: 0 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.page-hero .lead {
  font-size: 18px; color: var(--text-soft); line-height: 1.55; max-width: 640px;
  margin: 0 0 24px;
}
@media (max-width: 720px) { .page-hero h1 { font-size: 32px; letter-spacing: -0.6px; } }

/* CTAs */
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px; font-size: 15px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--accent); border-color: var(--accent-deep); color: var(--ink);
  box-shadow: 0 1px 0 rgba(202,138,4,.5);
}
.btn-primary:hover { background: #fde047; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-elev); }

/* SECTIONS */
section { padding: 40px 0; }
.section-eyebrow {
  font-size: 11px; font-weight: 700; color: var(--accent-deep);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px;
}
h2 {
  font-size: 32px; line-height: 1.15; letter-spacing: -0.6px;
  font-weight: 700; color: var(--ink); margin: 0 0 14px;
}
h3 {
  font-size: 22px; line-height: 1.2; letter-spacing: -0.3px;
  font-weight: 700; color: var(--ink); margin: 26px 0 10px;
}
p { font-size: 17px; color: var(--text-soft); margin: 0 0 16px; }
p strong { color: var(--ink); font-weight: 700; }

/* PROSE STYLING for blog posts */
.prose { max-width: 680px; }
.prose h2 { font-size: 28px; margin-top: 36px; }
.prose h3 { font-size: 21px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { font-size: 17px; color: var(--text-soft); margin-bottom: 6px; line-height: 1.6; }
.prose li strong { color: var(--ink); }
.prose blockquote {
  margin: 18px 0; padding: 14px 20px;
  background: var(--bg-elev); border-left: 3px solid var(--accent-deep);
  border-radius: 4px; color: var(--text); font-style: italic;
}
.prose hr { border: none; border-top: 1px solid var(--border-soft); margin: 32px 0; }
.prose a { color: var(--accent-deep); font-weight: 600; text-decoration: underline; }

/* PANELS */
.panel {
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 24px; margin-bottom: 14px;
}
.panel h3 { font-size: 20px; margin-top: 0; }
.panel p { font-size: 16px; }

/* COMPARE TABLE (alternatives pages) */
.compare {
  background: var(--bg-paper); border: 1px solid var(--border-soft);
  border-radius: 12px; overflow: hidden; margin-top: 16px;
}
.compare-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  align-items: center; padding: 14px 22px;
  border-bottom: 1px solid var(--border-soft); font-size: 15px;
}
.compare-row:last-child { border-bottom: none; }
.compare-row.head {
  background: var(--bg-elev); font-weight: 700; color: var(--ink);
  font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
}
.compare-row .feature { color: var(--text); }
.compare-row .check { color: var(--green); font-weight: 700; text-align: center; }
.compare-row .miss { color: var(--muted-soft); text-align: center; }
.compare-row .heardley-col { background: var(--accent-soft); padding: 14px 12px; }
.u-text-right { text-align: right; }
.u-text-center { text-align: center; }

/* Mobile: horizontal-scroll the table, keep header visible so columns stay
   labeled. The launch audit caught that hiding the head row + stacking 1-col
   broke comprehensibility (two stacked dots with no "which column?" label). */
@media (max-width: 720px) {
  .compare {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    background-image: linear-gradient(to right, transparent calc(100% - 24px), rgba(0,0,0,0.05));
  }
  .compare-row {
    grid-template-columns: 220px 110px 110px;
    padding: 12px 16px; font-size: 13px;
    min-width: 460px;
  }
  .compare-row.head { font-size: 10px; padding: 10px 16px; position: sticky; top: 0; z-index: 1; }
}

/* a11y focus ring (was missing) */
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip-to-main link */
.skip-link {
  position: absolute; left: 12px; top: -100px;
  background: var(--ink); color: var(--bg); padding: 10px 16px;
  border-radius: 6px; font-weight: 700; font-size: 14px;
  z-index: 9999; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--accent); }

/* Footer link tap-target sizing for mobile */
@media (max-width: 720px) {
  .footer-col a { padding: 10px 0; min-height: 44px; }
}

/* PRICE CALLOUT */
.price-callout {
  background: var(--ink); color: var(--bg);
  padding: 26px 28px; border-radius: 12px;
  margin: 24px 0; display: flex; gap: 24px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.price-callout .price-stack {
  display: flex; flex-direction: column; gap: 4px;
}
.price-callout .price-stack b {
  font-size: 28px; font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: -0.5px;
}
.price-callout .price-stack span { color: rgba(244,240,232,.65); font-size: 14px; }
.price-callout .price-cta {
  background: var(--accent); color: var(--ink); padding: 12px 22px;
  border-radius: 8px; font-weight: 700; font-size: 15px;
  border: 1px solid var(--accent-deep);
}
.price-callout .price-cta:hover { background: #fde047; }

/* FAQ */
.faq-grid { display: grid; gap: 12px; margin-top: 24px; }
.faq-item {
  background: var(--bg-paper); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 18px 20px;
}
.faq-item h4 {
  font-size: 16px; margin: 0 0 6px; font-weight: 700; color: var(--ink);
}
.faq-item p { font-size: 15px; margin: 0; line-height: 1.6; }

/* FOOTER (rich multi-column) */
.footer {
  border-top: 1px solid var(--border-soft); margin-top: 64px;
  padding: 44px 0 28px; font-size: 13px; color: var(--muted);
  background: var(--bg-elev);
}
.footer .inner,
.footer .footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.4fr 3fr; gap: 48px;
  align-items: start;
}
.footer-meta .brand-img-sm { height: 24px; width: auto; display: block; margin-bottom: 12px; }
.footer-tag {
  font-size: 13px; color: var(--text-soft); margin: 0 0 12px; max-width: 280px;
  line-height: 1.5;
}
.footer-copy { font-size: 12px; color: var(--muted-soft); margin: 0; }
.footer-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.footer-col h4 {
  font-size: 11px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin: 0 0 12px;
}
.footer-col a {
  display: block; color: var(--muted); font-size: 13px;
  padding: 4px 0; transition: color .12s ease;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1180px; margin: 32px auto 0; padding: 16px 28px 0;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--muted-soft);
}
.footer-bottom a { color: var(--muted-soft); }
.footer-bottom a:hover { color: var(--ink); }

@media (max-width: 840px) {
  .footer .inner, .footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
}
