/* ==========================================================================
   HookRetry shared site chrome: header, Products menu, suite strip,
   Lite vs Pro table, product cards and footer. Used by every product page.
   Each page sets its product accent with <body data-product="wr|aib|css">.
   ========================================================================== */

:root {
  --hr-bg: #090d16;
  --hr-surface: #0b1120;
  --hr-card: #111827;
  --hr-border: #1f293d;
  --hr-border-strong: #334155;
  --hr-text: #f9fafb;
  --hr-text-2: #cbd5e1;
  --hr-muted: #94a3b8;
  --hr-wr: #10b981;
  --hr-wr-soft: #34d399;
  --hr-aib: #60a5fa;
  --hr-aib-soft: #93c5fd;
  --hr-css: #f59e0b;
  --hr-css-soft: #fbbf24;
  --hr-accent: var(--hr-wr);
  --hr-accent-soft: var(--hr-wr-soft);
  --hr-accent-ink: #052e1f;
  --hr-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hr-mono: 'JetBrains Mono', ui-monospace, monospace;
}
body[data-product="aib"] { --hr-accent: var(--hr-aib); --hr-accent-soft: var(--hr-aib-soft); --hr-accent-ink: #0b1b3a; }
body[data-product="css"] { --hr-accent: var(--hr-css); --hr-accent-soft: var(--hr-css-soft); --hr-accent-ink: #451a03; }

.hr-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
/* Anchor jumps (contents lists, in-page links) land below the sticky header, for every element. */
html { scroll-padding-top: 96px; }
.hr-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hr-header a:focus-visible, .hr-header button:focus-visible,
.hr-footer a:focus-visible, .hr-suite a:focus-visible, .hr-card-link:focus-visible {
  outline: 2px solid var(--hr-accent-soft); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Header ---------- */
.hr-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hr-border);
  font-family: var(--hr-font);
}
.hr-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.hr-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hr-text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; }
.hr-brand-mark { width: 36px; height: 36px; border-radius: 10px; background: #0f2a22; border: 1px solid #14532d; display: inline-flex; align-items: center; justify-content: center; }
.hr-brand-mark svg { width: 20px; height: 20px; }
.hr-nav { display: flex; align-items: center; gap: 26px; flex: 1; justify-content: center; }
.hr-nav > a { color: var(--hr-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; white-space: nowrap; transition: color .15s ease; }
.hr-nav > a:hover { color: var(--hr-text); }
.hr-products-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px;
  background: none; border: 0; color: var(--hr-text); font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
.hr-products-btn svg { width: 14px; height: 14px; transition: transform .15s ease; }
.hr-products-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.hr-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 10px;
  background: var(--hr-accent); color: var(--hr-accent-ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; white-space: nowrap;
}
.hr-cta:hover { filter: brightness(1.08); }
.hr-menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--hr-border-strong); border-radius: 10px; color: var(--hr-text); cursor: pointer; }
.hr-menu-btn svg { width: 20px; height: 20px; }

/* ---------- Products panel ---------- */
.hr-products-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--hr-surface); border-bottom: 1px solid var(--hr-border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  padding: 24px 0 28px;
}
.hr-products-panel[hidden], .hr-mobile-menu[hidden] { display: none; }
.hr-eyebrow { font-family: var(--hr-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--hr-muted); text-transform: uppercase; }
.hr-products-panel .hr-eyebrow { margin-bottom: 14px; display: block; }
.hr-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hr-product-item {
  display: flex; gap: 14px; padding: 18px; border-radius: 12px;
  background: var(--hr-card); border: 1px solid var(--hr-border);
  text-decoration: none; color: var(--hr-text); transition: border-color .15s ease, transform .15s ease;
}
.hr-product-item:hover { border-color: var(--hr-border-strong); transform: translateY(-1px); }
.hr-product-item[aria-current="page"] { border-color: var(--hr-accent); }
.hr-product-item svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.hr-product-name { display: block; font-weight: 700; font-size: 1rem; }
.hr-product-desc { display: block; font-size: 0.875rem; color: var(--hr-muted); line-height: 1.5; margin-top: 4px; }
.hr-here { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--hr-accent-soft); margin-left: 6px; }

/* ---------- Mobile menu ---------- */
.hr-mobile-menu { border-top: 1px solid var(--hr-border); background: var(--hr-surface); padding: 16px 0 24px; }
.hr-mobile-menu .hr-product-grid { grid-template-columns: minmax(0, 1fr); }
.hr-mobile-links { display: flex; flex-direction: column; margin-top: 16px; }
.hr-mobile-links a { color: var(--hr-text-2); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--hr-border); font-weight: 500; }

/* ---------- Breadcrumb ---------- */
.hr-breadcrumb { font-family: var(--hr-font); font-size: 0.85rem; color: var(--hr-muted); padding-top: 22px; }
.hr-breadcrumb a { color: var(--hr-muted); text-decoration: none; }
.hr-breadcrumb a:hover { color: var(--hr-text); }

/* ---------- Suite strip (home) ---------- */
.hr-suite { border-top: 1px solid var(--hr-border); border-bottom: 1px solid var(--hr-border); background: var(--hr-surface); font-family: var(--hr-font); }
.hr-suite-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 18px; padding-bottom: 18px; }
.hr-suite a, .hr-suite span.hr-suite-current { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--hr-text-2); text-decoration: none; }
.hr-suite span.hr-suite-current { color: var(--hr-text); font-weight: 700; }
.hr-suite a:hover { color: var(--hr-text); }
.hr-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.hr-dot-wr { background: var(--hr-wr); } .hr-dot-aib { background: var(--hr-aib); } .hr-dot-css { background: var(--hr-css); }

/* ---------- Sections shared by product pages ---------- */
.hr-section { padding: 88px 0; font-family: var(--hr-font); }
.hr-section-alt { background: var(--hr-surface); border-top: 1px solid var(--hr-border); border-bottom: 1px solid var(--hr-border); }
.hr-section-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto 40px; max-width: 760px; text-align: center; }
.hr-section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; color: var(--hr-text); }
.hr-section-head p { color: var(--hr-muted); font-size: 1rem; line-height: 1.6; }

/* Lite vs Pro */
.hr-compare-wrap { overflow-x: auto; border: 1px solid var(--hr-border); border-radius: 14px; background: var(--hr-card); }
.hr-compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.hr-compare th, .hr-compare td { padding: 14px 18px; border-bottom: 1px solid var(--hr-border); text-align: left; color: var(--hr-text); }
.hr-compare tr:last-child td { border-bottom: 0; }
.hr-compare thead th { color: var(--hr-muted); font-weight: 600; font-size: 0.85rem; }
.hr-compare thead th.hr-col-pro { color: var(--hr-accent-soft); font-weight: 700; }
.hr-compare td.hr-yes { color: var(--hr-text); font-weight: 600; }
.hr-compare td.hr-no { color: var(--hr-muted); }
.hr-compare-note { margin-top: 14px; color: var(--hr-muted); font-size: 0.875rem; }

/* Product cards (home stack + "More from HookRetry") */
.hr-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hr-cards.hr-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hr-card {
  background: var(--hr-card); border: 1px solid var(--hr-border); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; color: var(--hr-text); text-decoration: none;
}
a.hr-card { transition: border-color .15s ease, transform .15s ease; }
a.hr-card:hover { border-color: var(--hr-border-strong); transform: translateY(-2px); }
.hr-card.hr-card-current { border: 2px solid var(--hr-accent); }
.hr-card-top { display: flex; justify-content: space-between; align-items: center; }
.hr-card svg { width: 30px; height: 30px; }
.hr-card-kicker { font-family: var(--hr-mono); font-size: 0.8rem; color: var(--hr-muted); }
.hr-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.hr-card p { color: var(--hr-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.hr-card-more { font-weight: 700; font-size: 0.95rem; margin-top: auto; }
.hr-card-more-wr { color: var(--hr-wr-soft); } .hr-card-more-aib { color: var(--hr-aib); } .hr-card-more-css { color: var(--hr-css-soft); }
.hr-badge-here { font-size: 11px; font-weight: 700; color: var(--hr-accent-soft); border: 1px solid var(--hr-border-strong); padding: 4px 10px; border-radius: 999px; }

/* ---------- Footer ---------- */
.hr-footer { border-top: 1px solid var(--hr-border); background: var(--hr-surface); padding: 56px 0 36px; text-align: left; font-family: var(--hr-font); color: var(--hr-muted); font-size: 0.9rem; }
.hr-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.hr-footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.hr-footer-brand strong { color: var(--hr-text); font-size: 1.05rem; }
.hr-footer nav { display: flex; flex-direction: column; gap: 10px; }
.hr-footer a { color: var(--hr-text-2); text-decoration: none; }
.hr-footer a:hover { color: var(--hr-text); }
.hr-footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hr-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hr-nav, .hr-header .hr-cta { display: none; }
  .hr-menu-btn { display: inline-flex; }
  .hr-product-grid, .hr-cards, .hr-cards.hr-cards-2, .hr-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hr-section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hr-product-item, a.hr-card, .hr-products-btn svg { transition: none; }
}

/* Pre-launch: buy buttons disabled until the Pro release (restore href from data-checkout). */
.buy-btn.is-soon { opacity: .6; cursor: default; pointer-events: none; }
.sale-soon-note { display: block; margin-top: 8px; }

/* Real product / brand icons (PNG) instead of generic line icons. */
.hr-brand-mark:has(img) { background: none; border: 0; }
.hr-brand-mark img { width: 36px; height: 36px; border-radius: 9px; display: block; }
.hr-picon { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: block; }
.hr-product-item .hr-picon { width: 28px; height: 28px; margin-top: 2px; }
.hr-card .hr-picon { width: 40px; height: 40px; border-radius: 10px; }

/* Floating "back to top" button, added by site.js on long pages. */
.hr-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hr-card); color: var(--hr-text); border: 1px solid var(--hr-border-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .2s, border-color .2s;
}
.hr-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.hr-to-top:hover { background: var(--hr-accent, var(--hr-wr)); border-color: var(--hr-accent, var(--hr-wr)); color: #04130d; }
.hr-to-top:focus-visible { outline: 2px solid var(--hr-accent-soft, var(--hr-wr-soft)); outline-offset: 3px; }
.hr-to-top svg { width: 20px; height: 20px; display: block; }
@media (prefers-reduced-motion: reduce) { .hr-to-top { transition: none; } }
@media (max-width: 600px) { .hr-to-top { right: 14px; bottom: 14px; } }
