/* Mobile nav open state */
@media (max-width: 720px) {
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: rgba(0,0,0,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px 22px 32px;
    gap: 18px;
    z-index: 99;
    border-bottom: 0.5px solid var(--line);
  }
  .nav-links.mobile-open > a,
  .nav-links.mobile-open .nav-dropdown-trigger {
    font-size: 14px;
    letter-spacing: 0.08em;
  }
  .nav-links.mobile-open .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 8px 0 0 12px;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Pagination */
  .nav-links.mobile-open .nav-logo-text { display: block; }
}

/* WP pagination */
.nav-links { flex-wrap: wrap; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  font-size: 13px; color: var(--text-2);
  border: 0.5px solid var(--line);
  transition: all 0.2s;
}
.page-numbers:hover,
.page-numbers.current { background: var(--text); color: #000; border-color: var(--text); }
.navigation.pagination .nav-links { display: flex; gap: 8px; margin-top: 48px; }

/* Article body WP default content styles */
.article-body ul, .article-body ol { color: var(--text-2); font-size: 16.5px; line-height: 1.8; padding-left: 28px; margin-bottom: 20px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { border-left: 3px solid var(--line); padding-left: 20px; color: var(--text-3); font-style: italic; margin: 28px 0; }
.article-body a { color: var(--c-field); text-decoration: underline; text-underline-offset: 3px; }
.article-body code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 14px; background: var(--bg-panel); padding: 2px 6px; border: 0.5px solid var(--line); }
.article-body pre { background: var(--bg-panel); border: 0.5px solid var(--line); padding: 20px 24px; overflow-x: auto; margin-bottom: 20px; }
.article-body pre code { background: transparent; border: none; padding: 0; }

/* Content section links */
.content-section a { color: var(--c-field); }
/* …but buttons keep their own text color (fix invisible CTA text) */
.content-section a.btn-field, .content-section a.btn-sheet, .gr-cta a.btn-field { color: #fff; }
.content-section a.btn-solid { color: #0b0b0d; }
.content-section a.btn-ghost { color: var(--text); }

/* ============================================================
   DESIGN 2.0 — Product cards (Gumroad/Etsy style) + product page
   ============================================================ */

/* Product card grid (overrides catalog-grid where used) */
.pcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.pcard {
  display: flex; flex-direction: column;
  background: var(--bg-soft);
  border: 0.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pcard:hover { border-color: var(--c-field); transform: translateY(-4px); }
.pcard:focus-visible { outline: 2px solid var(--c-field); outline-offset: 3px; }
.pcard-soon { opacity: 0.58; }
.pcard-soon:hover { opacity: 0.9; }
.pcard-img { aspect-ratio: 1 / 1; background: var(--bg-panel); overflow: hidden; position: relative; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-img-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-4); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.pcard-status {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.5); border: 0.5px solid var(--line);
}
.pcard-status.available { color: #34d399; }
.pcard-status.soon { color: var(--text-3); }
.pcard-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.pcard-cat { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--c-field); }
.pcard-cat.sheet { color: var(--c-sheet); }
.pcard-name { font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.32; }
.pcard-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-open {
  margin-top: auto; padding-top: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.pcard:hover .pcard-open { color: var(--c-field); }

/* Single product — two-column cover layout */
.product-hero {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 160px 5vw 80px;
}
.product-hero-cover {
  border-radius: 18px; overflow: hidden; border: 0.5px solid var(--line); background: var(--bg-panel);
}
.product-hero-cover img { width: 100%; height: auto; display: block; }
.product-hero-info .breadcrumbs { margin-bottom: 22px; }
.product-hero-info h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; margin: 6px 0 18px; }
.product-hero-status {
  display: inline-block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 0.5px solid var(--line); margin-bottom: 18px;
}
.product-hero-status.available { color: #34d399; }
.product-hero-status.soon { color: var(--text-3); }
.product-hero-formats { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-top: 22px; }

@media (max-width: 860px) {
  .product-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 120px; }
  .product-hero-cover { max-width: 360px; }
}

.pcard-cat.tool { color: var(--c-tool); }
.pcard-cat .lab-dot { display: inline-block; vertical-align: middle; margin-right: 6px; }

/* Lab cards — optional cover image */
.lab-item-thumb {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 10px; border: 0.5px solid var(--line); margin-bottom: 16px; background: var(--bg-panel);
}

/* Experiment single — cover banner */
.experiment-cover {
  max-width: var(--maxw); margin: 0 auto; padding: 0 5vw;
}
.experiment-cover { max-width: 960px; }
.experiment-cover img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 16px; border: 0.5px solid var(--line); display: block;
}

/* Mobile: product cards & hero */
@media (max-width: 600px) {
  .pcard-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-hero { padding-top: 110px; }
}
.eco-row, .lab-item[onclick] { outline-offset: 3px; }
.eco-row:focus-visible, .lab-item[onclick]:focus-visible { outline: 2px solid var(--c-field); }

/* ============================================================
   DESIGN 3.0 — tokens, search, product v3, forge v3, polish
   ============================================================ */
:root {
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px;
  --sp-section: 96px;
  --glow-field: 0 0 0 1px rgba(224,112,31,0.25), 0 18px 60px -20px rgba(224,112,31,0.35);
  --focus: 2px solid var(--c-field);
}
:focus-visible { outline: var(--focus); outline-offset: 3px; }

/* Header search */
.nav-search { display: flex; align-items: center; }
.nav-search input {
  width: 150px; height: 36px; padding: 0 14px; font-size: 13px;
  color: var(--text); background: rgba(255,255,255,0.05);
  border: 0.5px solid var(--line); border-radius: 999px; transition: width 0.3s var(--ease), border-color 0.2s;
}
.nav-search input::placeholder { color: var(--text-3); }
.nav-search input:focus { width: 210px; border-color: var(--c-field); outline: none; }
@media (max-width: 980px) { .nav-search { display: none; } }

/* Search results */
.search-page-form { display: flex; gap: 10px; margin-top: 28px; max-width: 560px; }
.search-page-form input { flex: 1; height: 48px; padding: 0 18px; background: var(--bg-panel); border: 0.5px solid var(--line); color: var(--text); border-radius: var(--r-md); font-size: 15px; }
.search-page-form input:focus { border-color: var(--c-field); outline: none; }
.search-results { display: grid; gap: 1px; background: var(--line); border: 0.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.search-result { display: block; background: var(--bg); padding: 22px 26px; text-decoration: none; transition: background 0.2s; }
.search-result:hover { background: var(--bg-soft); }
.search-result-type { display: inline-block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--c-field); margin-bottom: 6px; }
.search-result-title { display: block; font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.search-result-excerpt { display: block; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* Product card v3 — badge + price */
.pcard-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; color: #0a0a0b;
}
.pcard-badge.new { background: #34d399; }
.pcard-badge.bestseller { background: var(--c-field); color: #fff; }
.pcard-badge.bundle { background: var(--c-master); color: #fff; }
.pcard-price { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--text); }
.pcard-foot-row { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.pcard-foot-row .pcard-open { margin: 0; padding: 0; }

/* Star rating */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars i, .stars span.s { color: var(--c-field); font-size: 14px; letter-spacing: 1px; }
.rating-line { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }

/* Product page v3 */
.product-gallery { display: flex; gap: 12px; margin-top: 14px; }
.product-gallery img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); border: 0.5px solid var(--line); cursor: pointer; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.product-gallery img:hover, .product-gallery img.active { opacity: 1; border-color: var(--c-field); }
.product-hero-cover { position: relative; }
.buy-sticky { position: sticky; top: 90px; }
.whats-inside { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.whats-inside li { position: relative; padding-left: 30px; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.whats-inside li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(224,112,31,0.15); border: 1px solid var(--c-field); }
.whats-inside li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 5px; height: 9px; border: solid var(--c-field); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.whats-inside li.wi-head { grid-column: 1 / -1; padding-left: 0; margin-top: 14px; color: var(--c-field); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.whats-inside li.wi-head:first-child { margin-top: 0; }
.whats-inside li.wi-head::before, .whats-inside li.wi-head::after { display: none; }
.whats-inside { grid-template-columns: 1fr 1fr; column-gap: 40px; }
@media (max-width: 700px) { .whats-inside { grid-template-columns: 1fr; } }
.faq-item { border-bottom: 0.5px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-size: 17px; font-weight: 500; padding: 20px 36px 20px 0; cursor: pointer; position: relative; font-family: inherit; }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 22px; color: var(--c-field); transition: transform 0.25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); color: var(--text-2); font-size: 15px; line-height: 1.7; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }
.section-title { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }

/* Forge v3 — accent gradient hero + launch timeline */
.page-hero.forge-v3 .page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 20% 30%, var(--forge-accent, transparent) 0%, transparent 60%);
  opacity: 0.22; pointer-events: none;
}
.launch-timeline { display: flex; flex-wrap: wrap; gap: 0; margin: 8px 0 0; border: 0.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.launch-step { flex: 1; min-width: 140px; padding: 22px 20px; border-right: 0.5px solid var(--line); }
.launch-step:last-child { border-right: 0; }
.launch-step.done { background: var(--bg-soft); }
.launch-step-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-4); margin-bottom: 12px; }
.launch-step.done .launch-step-dot { background: var(--forge-accent, var(--c-field)); }
.launch-step-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.launch-step-name { font-size: 15px; font-weight: 600; color: var(--text); margin-top: 4px; }

/* Newsletter */
.newsletter { max-width: 520px; }
.newsletter-form { display: flex; gap: 10px; margin-top: 18px; }
.newsletter-form input[type=email] { flex: 1; height: 48px; padding: 0 18px; background: var(--bg-panel); border: 0.5px solid var(--line); color: var(--text); border-radius: var(--r-md); font-size: 15px; }
.newsletter-form input:focus { border-color: var(--c-field); outline: none; }
.newsletter-note { font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* Skeleton + reveal polish */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .buy-sticky { position: static; }
  .search-page-form { flex-direction: column; }
}

/* ---- v3.0.3 fixes: transparent SpaceX-style nav, gallery wrap, product body ---- */
.nav { background: transparent; }
.nav.scrolled { background: rgba(0,0,0,0.72); }

/* Gallery thumbnails: wrap inside the cover column, never overflow */
.product-gallery { flex-wrap: wrap; gap: 10px; }
.product-gallery img { width: 58px; height: 58px; }

/* Product description readability */
.single-product .article-body { max-width: 720px; }
.single-product .article-body p { font-size: 16px; line-height: 1.75; color: var(--text-2); margin-bottom: 16px; }
.single-product .article-body p strong { color: var(--text); }
.product-desc-wrap.clamped { max-height: 460px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
.product-desc-more { margin-top: 18px; background: none; border: 0.5px solid var(--line); color: var(--text); padding: 10px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color 0.2s, background 0.2s; font-family: inherit; }
.product-desc-more:hover { border-color: var(--c-field); color: var(--c-field); }

/* ============================================================
   DESIGN 4.0 — Phase 1: foundation (contrast, glow, polish)
   ============================================================ */
:root {
  --text-2: rgba(255,255,255,0.66);
  --text-3: rgba(255,255,255,0.42);
}
/* Soft accent glow on primary CTAs */
.btn-solid, .btn-field, .nav-cta { transition: box-shadow 0.3s var(--ease), transform 0.2s var(--ease), background 0.3s var(--ease); }
.btn-solid:hover { box-shadow: 0 12px 38px -12px rgba(255,255,255,0.45); transform: translateY(-2px); }
.btn-field:hover { box-shadow: 0 12px 40px -12px rgba(224,112,31,0.7); transform: translateY(-2px); }
.nav-cta:hover { transform: translateY(-1px); }
/* Featured product card gets a subtle field glow */
.pcard:hover { box-shadow: 0 22px 60px -28px rgba(224,112,31,0.55); }
/* Tighter, more confident headings */
.display { letter-spacing: -0.02em; }
h1, h2 { letter-spacing: -0.015em; }
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   DESIGN 4.0 — Phases 2–6
   ============================================================ */

/* ---- Phase 2: Mega-menu (SpaceX-style) ---- */
.nav-mega {
  display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 4px; padding: 14px; min-width: 440px; left: 0; transform: translateX(-30%) translateY(0);
}
.nav-dropdown:hover .nav-mega { transform: translateX(-30%) translateY(4px); }
.nav-mega-item { display: flex !important; align-items: center; gap: 12px; padding: 12px !important; border-radius: var(--r-md); }
.nav-mega-item:hover { background: rgba(255,255,255,0.06); }
.nav-mega-ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: color-mix(in srgb, var(--mega) 16%, transparent); border: 0.5px solid color-mix(in srgb, var(--mega) 40%, transparent); }
.nav-mega-ico img { width: 24px; height: 24px; object-fit: contain; }
.nav-mega-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-mega-name { font-size: 13px; font-weight: 600; color: var(--text); }
.nav-mega-tag { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.nav-mega-all { grid-column: 1 / -1; text-align: center; padding: 12px !important; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-field) !important; border-top: 0.5px solid var(--line); margin-top: 4px; }

/* Theme toggle button */
.nav-theme { background: none; border: 0.5px solid var(--line); color: var(--text); width: 36px; height: 36px; border-radius: 999px; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, transform 0.2s; }
.nav-theme:hover { border-color: var(--c-field); transform: rotate(20deg); }

/* ---- Phase 2: Hero glow mesh ---- */
.hero::before {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 78% 35%, rgba(224,112,31,0.16) 0%, transparent 60%);
  mix-blend-mode: screen;
}

/* ---- Phase 3: Storefront — card micro-tilt + featured ---- */
.pcard { will-change: transform; }
.pcard.is-featured { grid-column: span 2; flex-direction: row; }
.pcard.is-featured .pcard-img { aspect-ratio: auto; width: 46%; }
.pcard.is-featured .pcard-body { justify-content: center; padding: 32px; }
.pcard.is-featured .pcard-name { font-size: 24px; }
@media (max-width: 720px) { .pcard.is-featured { grid-column: span 1; flex-direction: column; } .pcard.is-featured .pcard-img { width: 100%; aspect-ratio: 1/1; } }

/* ---- Phase 3: Lightbox ---- */
.lfd-lightbox { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; padding: 5vw; cursor: zoom-out; }
.lfd-lightbox.open { display: flex; animation: lfdFade 0.25s ease; }
.lfd-lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 12px; border: 0.5px solid var(--line); }
.lfd-lightbox-close { position: absolute; top: 24px; right: 30px; font-size: 30px; color: #fff; background: none; border: none; cursor: pointer; }
.product-hero-cover img { cursor: zoom-in; }
@keyframes lfdFade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Phase 3: Reviews ---- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 10px; }
.review-card { background: var(--bg-soft); border: 0.5px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.review-stars { color: var(--c-field); font-size: 13px; letter-spacing: 1px; margin-bottom: 10px; }
.review-text { color: var(--text-2); font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(224,112,31,0.18); color: var(--c-field); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.review-name { font-size: 13px; font-weight: 600; color: var(--text); }

/* ---- Phase 5: Stats + social proof bands ---- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); }
.stat-cell { background: var(--bg); padding: 48px 24px; text-align: center; }
.stat-num { font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }
@media (max-width: 720px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.proof-band { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 36px 24px; opacity: 0.75; }
.proof-band a { color: var(--text-2); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: color 0.2s; }
.proof-band a:hover { color: var(--text); }

/* ---- Phase 4: Lab dot pulse + forge hero ---- */
.lab-dot, .launch-step.done .launch-step-dot { position: relative; }
.lab-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; animation: lfdPulse 2.4s ease-out infinite; }
@keyframes lfdPulse { 0% { opacity: 0.5; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.6); } }

/* ---- Phase 5: Exit-intent popup ---- */
.lfd-exit { position: fixed; inset: 0; z-index: 9500; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 24px; }
.lfd-exit.open { display: flex; animation: lfdFade 0.3s ease; }
.lfd-exit-box { background: var(--bg-panel); border: 0.5px solid var(--line); border-radius: var(--r-xl); padding: 40px; max-width: 440px; position: relative; text-align: center; }
.lfd-exit-close { position: absolute; top: 14px; right: 18px; background: none; border: none; color: var(--text-3); font-size: 22px; cursor: pointer; }

/* ---- Phase 6: skeleton ---- */
.skeleton { background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg-panel) 50%, var(--bg-soft) 75%); background-size: 200% 100%; animation: lfdSkel 1.4s infinite; }
@keyframes lfdSkel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Phase 5: Light theme ---- */
body.theme-light {
  --bg: #f6f6f7; --bg-soft: #ffffff; --bg-panel: #ffffff;
  --text: #0b0b0d; --text-2: rgba(0,0,0,0.62); --text-3: rgba(0,0,0,0.45); --text-4: rgba(0,0,0,0.18);
  --line: rgba(0,0,0,0.12); --line-soft: rgba(0,0,0,0.06);
}
body.theme-light .nav.scrolled { background: rgba(255,255,255,0.8); border-bottom-color: rgba(0,0,0,0.1); }
body.theme-light .nav-logo-lf { color: #0b0b0d; }
body.theme-light .pcard-status, body.theme-light .nav-dropdown-menu { background: rgba(255,255,255,0.9); }
body.theme-light .hero-media::after { background: linear-gradient(to right, rgba(255,255,255,0.85), rgba(255,255,255,0.2)); }

/* ============================================================
   DESIGN 4.2 — SpaceX nav, text submenu, quick-look, polish, light v2
   ============================================================ */

/* ---- SpaceX-style nav: logo + links left, search + CTA right ---- */
.nav-links { margin-right: auto; margin-left: 38px; gap: 26px; }
.nav-links > a, .nav-dropdown-trigger { font-size: 13px; letter-spacing: 0.04em; position: relative; }
.nav-links > a::after, .nav-dropdown-trigger::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1.5px; background: var(--c-field); transition: right 0.25s var(--ease); }
.nav-links > a:hover::after { right: 0; }

/* Text submenu (no icons) */
.nav-sub { min-width: 210px; padding: 10px; left: 0; right: auto; transform: translateX(0) translateY(0); }
.nav-dropdown:hover .nav-sub { transform: translateX(0) translateY(4px); }
.nav-sub-item { display: block; padding: 9px 14px; font-size: 13px; font-weight: 500; color: var(--text-2); border-radius: var(--r-sm); }
.nav-sub-item:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.nav-sub-all { display: block; padding: 11px 14px 6px; margin-top: 6px; border-top: 0.5px solid var(--line); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-field); }

/* ---- Quick-look modal ---- */
.pcard { position: relative; }
.pcard-ql { position: absolute; top: 12px; right: 12px; z-index: 3; opacity: 0; transform: translateY(-4px); background: rgba(10,10,11,0.8); color: #fff; border: 0.5px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(8px); transition: opacity 0.2s, background 0.2s; }
.pcard:hover .pcard-ql { opacity: 1; transform: translateY(0); }
.pcard-ql:hover { background: var(--c-field); border-color: var(--c-field); }
.ql-overlay { position: fixed; inset: 0; z-index: 9200; background: rgba(0,0,0,0.82); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 24px; }
.ql-overlay.open { display: flex; animation: lfdFade 0.25s ease; }
.ql-box { background: var(--bg-panel); border: 0.5px solid var(--line); border-radius: var(--r-xl); max-width: 800px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; position: relative; max-height: 90vh; }
.ql-img { background: var(--bg-soft); min-height: 320px; }
.ql-img img { width: 100%; height: 100%; object-fit: cover; }
.ql-body { padding: 36px; overflow-y: auto; }
.ql-cat { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--c-field); }
.ql-name { font-size: 24px; font-weight: 700; margin: 8px 0 14px; letter-spacing: -0.02em; }
.ql-price { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.ql-desc { color: var(--text-2); font-size: 14.5px; line-height: 1.6; margin-bottom: 22px; }
.ql-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.ql-close { position: absolute; top: 14px; right: 18px; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; z-index: 2; line-height: 1; }
@media (max-width: 680px) { .ql-box { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; } .ql-img { min-height: 220px; } }

/* ---- Polish pack ---- */
::selection { background: rgba(224,112,31,0.32); color: #fff; }
html { scrollbar-color: rgba(255,255,255,0.2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }
.pcard-img img { transition: transform 0.5s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; }
.breadcrumbs a { transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--c-field); }
/* Scroll-to-top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-panel); border: 0.5px solid var(--line); color: var(--text); font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s, border-color 0.2s; transform: translateY(10px); }
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { border-color: var(--c-field); color: var(--c-field); }

/* ============================================================
   LIGHT THEME v2 — full component pass
   ============================================================ */
body.theme-light { background: var(--bg); color: var(--text); }
body.theme-light .nav { background: rgba(255,255,255,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.theme-light .nav.scrolled { background: rgba(255,255,255,0.86); border-bottom: 0.5px solid rgba(0,0,0,0.1); }
body.theme-light .nav-links > a, body.theme-light .nav-dropdown-trigger, body.theme-light .nav-logo-lf { color: rgba(0,0,0,0.7); }
body.theme-light .nav-links > a:hover { color: #000; }
body.theme-light .nav-cta { background: #0b0b0d; color: #fff; border-color: #0b0b0d; }
body.theme-light .nav-cta:hover { background: #000; }
body.theme-light .nav-theme, body.theme-light .nav-search input { color: #0b0b0d; }
body.theme-light .nav-search input { background: rgba(0,0,0,0.04); }
body.theme-light .nav-dropdown-menu, body.theme-light .ql-box, body.theme-light .lfd-exit-box { background: #fff; }
body.theme-light .nav-sub-item:hover, body.theme-light .search-result:hover, body.theme-light .pcard:hover { background: rgba(0,0,0,0.04); }
body.theme-light .btn-solid { background: #0b0b0d; color: #fff; }
body.theme-light .btn-solid:hover { box-shadow: 0 12px 38px -12px rgba(0,0,0,0.4); }
body.theme-light .btn-ghost { color: #0b0b0d; border-color: rgba(0,0,0,0.25); }
body.theme-light .pcard, body.theme-light .review-card, body.theme-light .search-results, body.theme-light .stat-cell, body.theme-light .footer { background: #fff; }
body.theme-light .pcard-img, body.theme-light .pcard-img-empty { background: #f0f0f1; }
body.theme-light .pcard-status { background: rgba(255,255,255,0.9); border-color: rgba(0,0,0,0.1); }
body.theme-light .footer { border-top: 0.5px solid rgba(0,0,0,0.1); }
body.theme-light .stats-band, body.theme-light .search-results { background: rgba(0,0,0,0.1); }
body.theme-light ::selection { background: rgba(224,112,31,0.28); color: #0b0b0d; }
body.theme-light *::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); }
body.theme-light .to-top { background: #fff; }
body.theme-light .lab-dot.res { color: #185fa5; }

/* ============================================================
   5.0 — Interactive tools: Git Recovery Assistant
   ============================================================ */
.gr-tool { max-width: var(--maxw); margin: 0 auto; }
.gr-search-wrap { margin-bottom: 26px; }
.gr-search { width: 100%; height: 52px; padding: 0 20px; background: var(--bg-panel); border: 0.5px solid var(--line); color: var(--text); border-radius: var(--r-md); font-size: 15px; }
.gr-search:focus { border-color: var(--c-field); outline: none; }
.gr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gr-card { text-align: left; background: var(--bg-soft); border: 0.5px solid var(--line); border-radius: var(--r-lg); padding: 24px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); font-family: inherit; }
.gr-card:hover { border-color: var(--c-field); transform: translateY(-4px); box-shadow: 0 18px 50px -26px rgba(224,112,31,0.5); }
.gr-card-ico { font-size: 24px; color: var(--c-field); }
.gr-card-cat { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--c-field); }
.gr-card-title { font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.3; }
.gr-card-go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--text-2); }
.gr-card:hover .gr-card-go { color: var(--c-field); }
.gr-result { max-width: 760px; margin: 0 auto; }
.gr-back { background: none; border: none; color: var(--text-2); cursor: pointer; font-size: 13px; font-weight: 600; margin-bottom: 20px; font-family: inherit; }
.gr-back:hover { color: var(--c-field); }
.gr-res-title { font-size: clamp(26px, 3.5vw, 38px); margin: 8px 0 12px; letter-spacing: -0.02em; }
.gr-res-sym { color: var(--text-2); font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.gr-steps-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.gr-copy { background: none; border: 0.5px solid var(--line); color: var(--text); border-radius: 999px; padding: 5px 14px; font-size: 11px; cursor: pointer; font-family: inherit; letter-spacing: 0.06em; }
.gr-copy:hover { border-color: var(--c-field); color: var(--c-field); }
.gr-steps { background: #0c0c0e; border: 0.5px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; overflow-x: auto; font-family: 'SF Mono','Fira Code',ui-monospace,monospace; font-size: 13.5px; line-height: 1.9; }
.gr-line { color: #e8e8e8; white-space: pre; }
.gr-line.gr-cmt { color: var(--text-3); }
.gr-dont { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--c-field); background: rgba(224,112,31,0.07); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.gr-dont strong { color: var(--c-field); }
.gr-cta { margin-top: 32px; padding: 28px; border: 0.5px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); text-align: center; }
.gr-cta p { color: var(--text-2); margin-bottom: 16px; }
body.theme-light .gr-steps { background: #0c0c0e; }
.gr-feature { display: flex; align-items: center; justify-content: space-between; gap: 24px; text-decoration: none; background: linear-gradient(120deg, rgba(224,112,31,0.12), var(--bg-soft) 60%); border: 0.5px solid var(--line); border-radius: var(--r-xl); padding: 40px 44px; overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.gr-feature:hover { border-color: var(--c-field); transform: translateY(-3px); }
.gr-feature-go { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--c-field); }
.gr-feature-glyph { font-size: 120px; color: rgba(224,112,31,0.5); line-height: 1; flex-shrink: 0; }
@media (max-width: 700px) { .gr-feature-glyph { display: none; } }

/* Bug Report Generator */
.br-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: var(--maxw); margin: 0 auto; align-items: start; }
.br-form { display: flex; flex-direction: column; gap: 16px; }
.br-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.br-field { display: flex; flex-direction: column; gap: 6px; }
.br-field > span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.br-field em { color: var(--c-field); font-style: normal; }
.br-field input, .br-field textarea, .br-field select { background: var(--bg-panel); border: 0.5px solid var(--line); color: var(--text); border-radius: var(--r-sm); padding: 11px 14px; font-size: 14px; font-family: inherit; resize: vertical; }
.br-field input:focus, .br-field textarea:focus, .br-field select:focus { border-color: var(--c-field); outline: none; }
.br-out { position: sticky; top: 90px; }
.br-out-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.br-out-actions { display: flex; gap: 8px; }
.br-preview { white-space: pre-wrap; min-height: 300px; }
@media (max-width: 820px) { .br-tool { grid-template-columns: 1fr; } .br-row { grid-template-columns: 1fr; } .br-out { position: static; } }

/* Tools feature grid (Free Tools page) */
.tools-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .tools-feature-grid { grid-template-columns: 1fr; } }
.tools-feature-grid .gr-feature { padding: 32px; }
.tools-feature-grid .gr-feature-glyph { font-size: 80px; }

/* PR Review Checklist */
.pr-tool { max-width: 760px; margin: 0 auto; }
.pr-progress-bar { height: 8px; background: var(--bg-panel); border: 0.5px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.pr-progress-fill { height: 100%; width: 0; background: var(--c-field); transition: width 0.35s var(--ease); }
.pr-verdict { font-size: 15px; font-weight: 600; padding: 12px 0 24px; }
.pr-verdict.ok { color: #34d399; }
.pr-verdict.warn { color: var(--c-field); }
.pr-verdict.bad { color: var(--text-2); }
.pr-group { margin-bottom: 26px; }
.pr-group-name { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.pr-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border: 0.5px solid var(--line); border-radius: var(--r-sm); margin-bottom: 8px; cursor: pointer; transition: border-color 0.2s, background 0.2s; color: var(--text-2); font-size: 15px; }
.pr-item:hover { border-color: rgba(224,112,31,0.5); }
.pr-item input { position: absolute; opacity: 0; }
.pr-check { width: 20px; height: 20px; border: 1.5px solid var(--line); border-radius: 6px; flex-shrink: 0; margin-top: 1px; position: relative; transition: background 0.2s, border-color 0.2s; }
.pr-item input:checked ~ .pr-check { background: var(--c-field); border-color: var(--c-field); }
.pr-item input:checked ~ .pr-check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pr-item input:checked ~ span:last-child { color: var(--text); text-decoration: line-through; text-decoration-color: var(--text-4); }
.pr-item input:focus-visible ~ .pr-check { outline: 2px solid var(--c-field); outline-offset: 2px; }

/* .gitignore chips */
.gi-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.gi-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--text-2); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.gi-chip:hover { border-color: rgba(224,112,31,0.5); }
.gi-chip input { position: absolute; opacity: 0; }
.gi-chip input:checked ~ span { color: var(--text); }
.gi-chip:has(input:checked) { border-color: var(--c-field); background: rgba(224,112,31,0.1); color: var(--text); }

/* Regression risk meter */
.rs-meter { height: 10px; background: var(--bg-panel); border: 0.5px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.rs-meter-fill { height: 100%; width: 0; transition: width 0.4s var(--ease), background 0.3s; background: var(--c-field); }
.rs-meter-fill.ok { background: #34d399; }
.rs-meter-fill.warn { background: var(--c-field); }
.rs-meter-fill.bad { background: #f87171; }
.rs-score { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.rs-score.ok { color: #34d399; } .rs-score.warn { color: var(--c-field); } .rs-score.bad { color: #f87171; }
.rs-verdict { color: var(--text-2); font-size: 15px; line-height: 1.6; margin: 10px 0 22px; }
.rs-recs .whats-inside { grid-template-columns: 1fr; }

/* Tools hub */
.tools-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tool-hub-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--bg-soft); border: 0.5px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color 0.25s, transform 0.25s; }
.tool-hub-card:hover { border-color: var(--c-field); transform: translateY(-4px); box-shadow: 0 18px 50px -26px rgba(224,112,31,0.5); }
.tool-hub-ico { font-size: 30px; color: var(--c-field); }
.tool-hub-name { font-size: 19px; font-weight: 600; color: var(--text); }
.tool-hub-desc { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.tool-hub-go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tool-hub-card:hover .tool-hub-go { color: var(--c-field); }

/* Pricing table */
.pricing-table { display: grid; gap: 1px; background: var(--line); border: 0.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 44px; }
.pricing-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--bg); padding: 26px 28px; transition: background 0.2s; }
.pricing-row:hover { background: var(--bg-soft); }
.pricing-row.is-soon { opacity: 0.6; }
.pricing-name { font-size: 19px; font-weight: 600; color: var(--text); text-decoration: none; }
.pricing-name:hover { color: var(--c-field); }
.pricing-desc { color: var(--text-2); font-size: 14px; line-height: 1.55; margin: 6px 0 10px; max-width: 560px; }
.pricing-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-3); align-items: center; }
.pricing-fmt { letter-spacing: 0.04em; }
.pricing-status { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.pricing-status.available { color: #34d399; }
.pricing-status.soon { color: var(--text-3); }
.pricing-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.pricing-price { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
@media (max-width: 640px) { .pricing-row { flex-direction: column; align-items: flex-start; gap: 16px; } .pricing-buy { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; } }

/* Legal pages readability */
.legal-page { max-width: 760px; }
.legal-page h2 { font-size: 22px; margin: 32px 0 12px; }
.legal-page h3 { font-size: 17px; margin: 24px 0 8px; }
.legal-page p, .legal-page li { color: var(--text-2); line-height: 1.75; font-size: 16px; }
.legal-page ul { padding-left: 22px; margin: 12px 0; }
.legal-page a { color: var(--c-field); }
