
/*!
 * FluxPress Theme — main.css
 * v2.0 — redesigned blog & single post, site-wide animations
 */

/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  --primary: #386FFB;
  --primary-600: #2858E0;
  --primary-50: #EEF7FF;
  --primary-100: #DCE9FF;
  --success: #04C568;
  --success-50: #E8FBF1;
  --accent: #FF9254;
  --accent-50: #FFF1E6;
  --ink: #0A0E1A;
  --ink-2: #1A1F2E;
  --ink-3: #2A3142;
  --body: #6F6F6F;
  --muted: #9AA3B2;
  --hairline: #E6EAF2;
  --hairline-2: #EEF1F6;
  --bg: #FAFBFD;
  --white: #FFFFFF;
  --code-bg: #0E1320;

  --f-sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 6px;
  --r: 8px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(10,14,26,.04), 0 1px 1px rgba(10,14,26,.03);
  --shadow: 0 6px 24px -8px rgba(10,14,26,.10), 0 2px 6px rgba(10,14,26,.04);
  --shadow-lg: 0 24px 60px -20px rgba(56,111,251,.18), 0 8px 20px -8px rgba(10,14,26,.08);
  --shadow-blue: 0 14px 40px -12px rgba(56,111,251,.30);

  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--ink); color: var(--white); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 28px; }
.wrap-tight { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.wrap-md { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.wrap-tight.center, .wrap-narrow.center { text-align: center; }
.wrap-tight .ctas, .wrap-narrow.center .ctas { justify-content: center; }

/* ============================================
   READING PROGRESS (single post)
   ============================================ */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: transparent; z-index: 100; pointer-events: none;
  opacity: 0; transition: opacity .25s var(--ease-out);
}
.read-progress.is-on { opacity: 1; }
.read-progress::after {
  content: ""; display: block; height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
  transform-origin: left; transform: scaleX(var(--p, 0));
  transition: transform .08s linear;
  box-shadow: 0 0 14px rgba(56,111,251,.45);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(250, 251, 253, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease-out),
              border-color .25s var(--ease-out),
              box-shadow .25s var(--ease-out);
}
.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 0 rgba(10,14,26,.02), 0 4px 18px -8px rgba(10,14,26,.06);
}
.topbar-inner {
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h);
  transition: height .25s var(--ease-out);
}
.topbar.is-scrolled .topbar-inner { height: 60px; }

/* Logo */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-sans);
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
  color: var(--ink);
  position: relative; z-index: 2;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  transition: transform .25s var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-mark::before {
  content: ""; position: absolute;
  left: 7px; top: 6px; width: 4px; height: 15px; border-radius: 2px;
  background: var(--white); transform: rotate(-18deg);
}
.brand-mark::after {
  content: ""; position: absolute;
  right: 7px; bottom: 6px; width: 4px; height: 15px; border-radius: 2px;
  background: var(--success); transform: rotate(-18deg);
}
.brand-sub {
  display: block; font-family: var(--f-mono); font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--body); font-weight: 500; margin-top: 1px;
}
.brand-stack { display: flex; flex-direction: column; line-height: 1.05; }

/* Nav */
.nav { display: flex; align-items: center; gap: 6px; flex: 1; flex-wrap: nowrap; min-width: 0; }
.nav-item {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink); font-size: 15px; font-weight: 500;
  padding: 10px 14px; border-radius: 8px;
  cursor: pointer;
  transition: color .15s, background .15s;
  /* Multi-word items ("Adaptive Images") must never break across lines.
     flex-shrink:0 stops the flex row from squeezing them once the item
     count grows. */
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-item::before {
  content: ""; position: absolute;
  left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--ink); border-radius: 1px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-item:hover::before { transform: scaleX(1); }
.nav-item.is-active { color: var(--ink); }
.nav-item.is-active::before { transform: scaleX(1); background: var(--primary); }
.nav-item .caret {
  width: 10px; height: 6px; opacity: .55;
  transition: transform .2s var(--ease-out);
}
.nav-item:hover .caret { transform: rotate(-180deg); opacity: 1; }

/* Hover bridge: the dropdown sits 12px below the label (top: calc(100% + 12px)).
   Moving the cursor slowly across that empty gap used to drop :hover and close
   the menu. This invisible strip extends the hoverable area of the dropdown
   parents (the <div class="nav-item"> items only — plain <a> links are skipped)
   down through the gap so the menu stays open. */
div.nav-item::after {
  content: ""; position: absolute;
  left: 0; right: 0; top: 100%; height: 16px;
}

/* Dropdown — mega-style */
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 10px;
  min-width: 320px;
  box-shadow: 0 24px 60px -20px rgba(10,14,26,.18),
              0 8px 20px -8px rgba(10,14,26,.06);
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .25s var(--ease-out);
}
.dropdown.is-open,
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown::before {
  content: ""; position: absolute;
  left: 50%; top: -6px; width: 12px; height: 12px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-right: 0; border-bottom: 0;
  transform: translateX(-50%) rotate(45deg);
}
.dropdown-link {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), background .15s;
}
.nav-item:hover .dropdown .dropdown-link,
.dropdown.is-open .dropdown-link { opacity: 1; transform: translateY(0); }
.dropdown-link:nth-child(1) { transition-delay: .04s; }
.dropdown-link:nth-child(2) { transition-delay: .08s; }
.dropdown-link:nth-child(3) { transition-delay: .12s; }
.dropdown-link:nth-child(4) { transition-delay: .16s; }
.dropdown-link:hover { background: var(--primary-50); }
.dropdown-ic {
  flex: none; width: 36px; height: 36px; border-radius: 9px;
  background: var(--primary-50); color: var(--primary);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 600; font-size: 13px;
}
.dropdown-link.s2 .dropdown-ic { background: var(--success-50); color: var(--success); }
.dropdown-link.s3 .dropdown-ic { background: var(--accent-50); color: #b3551c; }
.dropdown-link .title { font-size: 14.5px; font-weight: 600; color: var(--ink); display: block; }
.dropdown-link .desc  { font-size: 12.5px; color: var(--body); margin-top: 2px; line-height: 1.4; display: block; }

.nav-spacer { flex: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; font-size: 14.5px; font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .12s var(--ease-out),
              box-shadow .2s var(--ease-out),
              background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  position: relative;
}
.btn .arr { transition: transform .2s var(--ease-out); display: inline-block; }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-2); box-shadow: 0 12px 28px -10px rgba(10,14,26,.4); }
.btn-blue { background: var(--primary); color: var(--white); }
.btn-blue:hover { background: var(--primary-600); box-shadow: var(--shadow-blue); }
.btn-orange { background: var(--accent); color: var(--ink); }
.btn-orange:hover { filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-link { padding: 0; font-weight: 600; color: var(--primary); background: none; border: 0; }
.btn-cta-outline { background: transparent; color: var(--white); border: 1px solid #2a3142; }
.btn-cta-outline:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--white);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  cursor: pointer;
  margin-left: auto;
  transition: background .15s, border-color .15s;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease-spring), opacity .15s;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--white);
  z-index: 55;
  padding: 24px 24px 40px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .22s var(--ease-out), transform .25s var(--ease-out);
  overflow-y: auto;
}
body.menu-open .mobile-drawer { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mdrawer-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--hairline-2);
  font-size: 18px; font-weight: 500; color: var(--ink);
  opacity: 0; transform: translateX(-10px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  cursor: pointer;
}
body.menu-open .mdrawer-item { opacity: 1; transform: translateX(0); }
body.menu-open .mdrawer-item:nth-child(1) { transition-delay: .04s; }
body.menu-open .mdrawer-item:nth-child(2) { transition-delay: .08s; }
body.menu-open .mdrawer-item:nth-child(3) { transition-delay: .12s; }
body.menu-open .mdrawer-item:nth-child(4) { transition-delay: .16s; }
body.menu-open .mdrawer-item:nth-child(5) { transition-delay: .20s; }
body.menu-open .mdrawer-item:nth-child(6) { transition-delay: .24s; }
body.menu-open .mdrawer-item:nth-child(7) { transition-delay: .28s; }
body.menu-open .mdrawer-item:nth-child(8) { transition-delay: .32s; }
.mdrawer-item .plus {
  font-size: 22px; color: var(--body); font-weight: 300;
  transition: transform .25s var(--ease-spring), color .15s;
}
.mdrawer-item.is-open .plus { transform: rotate(45deg); color: var(--primary); }
.mdrawer-sub {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease-out);
}
.mdrawer-item.is-open + .mdrawer-sub { grid-template-rows: 1fr; }
.mdrawer-sub > div { overflow: hidden; }
.mdrawer-sub a {
  display: block; padding: 12px 16px; font-size: 15px;
  color: var(--body); border-bottom: 1px solid var(--hairline-2);
}
.mdrawer-sub a:hover { color: var(--primary); }
.mdrawer-cta {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 24px;
}
.mdrawer-cta .btn { justify-content: center; }

/* ============================================
   SECTION HELPERS
   ============================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--body);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px var(--primary-50);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--primary-50); }
  50%      { box-shadow: 0 0 0 7px rgba(56,111,251,.08); }
}
.eyebrow.eb-green::before, .eyebrow.eyebrow-green::before { background: var(--success); box-shadow: 0 0 0 4px var(--success-50); }
.eyebrow.eb-orange::before, .eyebrow.eyebrow-orange::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-50); }
.eyebrow.eyebrow-blue::before { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin: 0; }
.h-display { font-size: clamp(44px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.h-1 { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.0; letter-spacing: -0.035em; }
.h-2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.025em; }
.h-3 { font-size: 22px; line-height: 1.25; }
.lede { font-size: clamp(17px, 1.3vw, 19px); color: var(--body); line-height: 1.55; max-width: 640px; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 128px 0; }
.section-tight { padding-top: 0; }
.section.first { padding-top: calc(var(--header-h) + 64px); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; max-width: 760px; }
.section-head .eyebrow { margin-bottom: 4px; }
.section-cta { display: flex; justify-content: center; margin-top: 40px; }

/* Cards base */
.card {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: #cfd6e3; box-shadow: var(--shadow-sm); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; font-family: var(--f-mono);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-blue { background: var(--primary-50); color: var(--primary); }
.badge-green { background: var(--success-50); color: #027b41; }
.badge-orange { background: var(--accent-50); color: #b3551c; }
.badge-ghost { background: transparent; color: var(--body); border: 1px solid var(--hairline); }

/* Trust */
.trust { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; font-size: 13.5px; color: var(--body); }
.trust b { color: var(--ink); }
.trust .stars { color: var(--accent); letter-spacing: 2px; }
.trust .dot, .trust-divider { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }

/* Dot grid bg */
.dotgrid { background-image: radial-gradient(circle, #d6dcea 1px, transparent 1px); background-size: 22px 22px; }

/* Arrow link */
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--primary); }
.arrow-link:hover .arr { transform: translateX(4px); }
.arr { transition: transform .15s; display: inline-block; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 9px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.checklist li::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--success-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M5 9.5l2.5 2.5 5-5.5' stroke='%2304C568' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: center;
  margin-top: 2px;
}
.checklist li.x::before {
  background-color: #F4F5F8;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M6 6l6 6M12 6l-6 6' stroke='%23B0B7C5' stroke-width='1.8' stroke-linecap='round'/></svg>");
}

.kbd { font-family: var(--f-mono); font-size: 12px; background: var(--hairline-2); border: 1px solid var(--hairline); padding: 2px 7px; border-radius: 5px; }

/* Account button */
.btn-account { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 8px 16px; white-space: nowrap; }
.btn-account svg { flex-shrink: 0; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r); z-index: 9999; }

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.no-anim { transition: none; }


/* ============================================
   BLOG INDEX
   ============================================ */
.blog-hero {
  padding: calc(var(--header-h) + 72px) 0 32px;
  position: relative;
}
.blog-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(56,111,251,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}
.blog-hero h1 .b { color: var(--primary); }
.blog-hero h1 .b .underline { position: relative; display: inline-block; }
.blog-hero h1 .b .underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 12px; background: rgba(56,111,251,.18);
  z-index: -1; transform: skewY(-1deg);
}
.blog-hero-meta {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  align-items: center;
  font-family: var(--f-mono); font-size: 12.5px; color: var(--body);
  letter-spacing: 0.04em;
}
.blog-hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }

/* Filter pills */
.filter-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding: 24px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.filter-pill {
  padding: 9px 16px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--body); background: var(--white);
  border: 1px solid var(--hairline); border-radius: 999px;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s, transform .15s;
}
.filter-pill:hover { color: var(--ink); border-color: var(--ink); }
.filter-pill.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter-pill .count { display: inline-block; margin-left: 6px; font-size: 10.5px; opacity: .55; }

/* Featured post */
.featured-post {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 48px; margin-top: 56px; padding-bottom: 64px;
  border-bottom: 1px solid var(--hairline); align-items: center;
}
.featured-post .img-wrap {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, #1a1f2e 0%, #0a0e1a 100%);
  cursor: pointer; display: block;
}
.featured-post .img-wrap::after {
  content: "FEATURED"; position: absolute; top: 18px; left: 18px;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.14em; padding: 5px 10px;
  background: rgba(255,255,255,0.95); color: var(--ink);
  border-radius: 999px; font-weight: 600; z-index: 2;
}
.featured-illustration {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px;
  transition: transform .6s var(--ease-out);
}
.featured-post .img-wrap:hover .featured-illustration { transform: scale(1.04); }
.featured-illustration .row {
  display: flex; gap: 18px; align-items: center;
  font-family: var(--f-mono); font-size: 12px; color: rgba(255,255,255,.7);
  letter-spacing: 0.06em;
}
.featured-illustration .chip {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px; border-radius: 8px;
}
.featured-illustration .chip.red { color: #FF9494; border-color: rgba(255,148,148,.2); }
.featured-illustration .chip.green { color: #6BE3A4; border-color: rgba(107,227,164,.2); }
.featured-illustration .arrow { color: rgba(255,255,255,.4); font-size: 16px; }
.featured-illustration h4,
.featured-illustration .ttl {
  color: rgba(255,255,255,.95); font-size: 18px;
  font-family: var(--f-mono); letter-spacing: -0.01em; text-align: center;
}
.featured-illustration .bar {
  width: 200px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.06); overflow: hidden; position: relative;
}
.featured-illustration .bar::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 30%; background: var(--success);
  animation: barfill 3s var(--ease-out) infinite;
}
@keyframes barfill {
  0%   { width: 0; background: #FF9494; }
  50%  { width: 95%; background: var(--success); }
  100% { width: 95%; background: var(--success); }
}
.featured-post .body { display: flex; flex-direction: column; gap: 16px; }
.featured-post .body .cat {
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); font-weight: 600;
}
.featured-post .body h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.featured-post .body h2 a:hover { color: var(--primary); transition: color .2s; }
.featured-post .body .excerpt { color: var(--body); font-size: 16px; line-height: 1.6; }
.featured-post .body .meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12px; color: var(--body);
}
.featured-post .body .read-more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 600; font-size: 15px; margin-top: 4px;
}
.featured-post .body .read-more .arr { transition: transform .25s var(--ease-out); }
.featured-post .body .read-more:hover .arr { transform: translateX(5px); }

/* Blog grid */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 56px;
}
.blog-card {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: 16px; overflow: hidden; position: relative;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s;
  cursor: pointer; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px -18px rgba(56,111,251,.18), 0 8px 20px -8px rgba(10,14,26,.06);
  border-color: rgba(56,111,251,.3);
}
.blog-card .img {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--hairline); background: var(--hairline-2);
}
.blog-card .img .inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  font-family: var(--f-mono);
  transition: transform .6s var(--ease-out);
}
.blog-card:hover .img .inner { transform: scale(1.06); }
.blog-card .img.v1 { background: linear-gradient(135deg, #386FFB 0%, #2858E0 100%); }
.blog-card .img.v2 { background: linear-gradient(135deg, #0E1320 0%, #1A1F2E 100%); }
.blog-card .img.v3 { background: linear-gradient(135deg, #04C568 0%, #028a48 100%); }
.blog-card .img.v4 { background: linear-gradient(135deg, #FF9254 0%, #ed7028 100%); }
.blog-card .img.v5 { background: linear-gradient(135deg, #6B5BFF 0%, #4d3edb 100%); }
.blog-card .img .inner .lbl {
  font-size: 10.5px; letter-spacing: 0.18em;
  color: rgba(255,255,255,.5); text-transform: uppercase;
}
.blog-card .img .inner .title {
  color: rgba(255,255,255,.95); font-size: 22px;
  letter-spacing: -0.02em; font-weight: 700;
  text-align: center; padding: 0 20px;
}
.blog-card .img .glyph {
  position: absolute; font-family: var(--f-mono); font-weight: 700;
  font-size: 96px; line-height: 1; color: rgba(255,255,255,0.08);
  letter-spacing: -0.04em;
  transition: transform .8s var(--ease-out);
}
.blog-card .img .glyph.tl { top: 14px; left: 16px; }
.blog-card .img .glyph.br { bottom: -10px; right: 14px; }
.blog-card:hover .img .glyph.tl { transform: translate(-4px, -2px); }
.blog-card:hover .img .glyph.br { transform: translate(4px, 2px); }
.blog-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card .cat {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); font-weight: 600;
}
.blog-card h3,
.blog-card h2 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
.blog-card .excerpt { color: var(--body); font-size: 14.5px; line-height: 1.55; flex: 1; }
.blog-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 14px; margin-top: 4px;
}
.blog-card .more .arr { transition: transform .25s var(--ease-out); }
.blog-card:hover .more .arr { transform: translateX(4px); }
/* Legacy compat for old b1/b2/b3 classes */
.blog-card.b1 .img { background: linear-gradient(135deg, #386FFB 0%, #1d3fad 100%); }
.blog-card.b2 .img { background: var(--ink); }
.blog-card.b3 .img { background: linear-gradient(135deg, #04C568 0%, #027b41 100%); }

/* Pagination */
.pagination {
  margin-top: 64px; margin-bottom: 32px;
  display: flex; justify-content: center; gap: 6px;
}
.pagination a, .pagination span, .pagination .page-numbers {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline); border-radius: 10px;
  font-family: var(--f-mono); font-size: 13px;
  color: var(--ink);
  transition: border-color .15s, background .15s, color .15s;
  text-decoration: none;
}
.pagination a:hover, .pagination .page-numbers:hover:not(.current) { border-color: var(--ink); }
.pagination .current, .pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination .prev, .pagination .next {
  width: auto; padding: 0 16px; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
/* WP pagination wrapper compat */
.nav-links { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 64px; }

/* ============================================
   SINGLE POST
   ============================================ */
.post-hero {
  padding: calc(var(--header-h) + 64px) 0 32px;
  text-align: center; position: relative;
}
.post-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(56,111,251,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}
.post-hero .crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--body); text-transform: uppercase; margin-bottom: 24px;
}
.post-hero .crumb a:hover { color: var(--primary); }
.post-hero .crumb .sep { color: var(--muted); }
.post-hero .cat-badge {
  display: inline-block; padding: 6px 14px;
  background: var(--primary-50); color: var(--primary);
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 20px;
}
.post-hero h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 600;
  max-width: 880px; margin: 0 auto; text-wrap: balance;
}
.post-hero .post-meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  justify-content: center; align-items: center;
  font-family: var(--f-mono); font-size: 12.5px; color: var(--body);
  letter-spacing: 0.04em;
}
.post-hero .post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.post-hero .post-meta .author {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500;
}
.post-hero .post-meta .author .av {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--success));
}

/* Featured image */
.featured-img { max-width: 1080px; margin: 48px auto 0; padding: 0 28px; position: relative; }
.featured-img .img-box {
  border-radius: 18px; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #386FFB 0%, #1d3fad 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  clip-path: inset(0 0 0 0 round 18px);
  animation: revealImg 1s var(--ease-out) both;
}
.featured-img .img-box img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0; display: block;
}
.featured-img .img-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.featured-img .img-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 18px; align-items: center;
  color: rgba(255,255,255,.95);
  font-family: var(--f-mono);
}
.featured-img .img-content .big {
  font-size: clamp(18px, 2.5vw, 28px); letter-spacing: -0.02em; font-weight: 700;
  text-align: center;
}
.featured-img .img-content .sub {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
@keyframes revealImg {
  0% { clip-path: inset(0 100% 0 0 round 18px); }
  100% { clip-path: inset(0 0 0 0 round 18px); }
}

/* Post layout: sidebar + content + share rail */
.post-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px) 80px;
  gap: 64px;
  max-width: 1180px; margin: 64px auto 0; padding: 0 28px;
  align-items: start;
}

/* TOC */
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; }
.toc-label {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--body); font-weight: 600; margin-bottom: 14px;
}
.toc ul, .toc-list { list-style: none; padding: 0; margin: 0; }
.toc li { position: relative; }
.toc a {
  display: block; padding: 8px 14px; margin-left: -1px;
  color: var(--body);
  border-left: 2px solid var(--hairline);
  font-size: 13.5px; line-height: 1.4;
  transition: color .15s, border-color .15s, padding-left .15s;
}
.toc a:hover { color: var(--ink); border-color: var(--muted); }
.toc a.is-active { color: var(--primary); border-color: var(--primary); font-weight: 500; padding-left: 18px; }
.toc li.sub a { padding-left: 26px; font-size: 13px; }
.toc li.sub a.is-active { padding-left: 30px; }
.toc-collapser { display: none; }

/* Share rail */
.share-rail {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.share-rail .lbl {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--body); writing-mode: vertical-rl; transform: rotate(180deg);
  margin-bottom: 14px;
}
.share-btn {
  width: 42px; height: 42px;
  border: 1px solid var(--hairline); border-radius: 12px;
  display: grid; place-items: center;
  color: var(--body); background: var(--white);
  transition: transform .2s var(--ease-spring), border-color .15s, color .15s, background .15s;
  position: relative;
}
.share-btn:hover { transform: translateY(-3px) scale(1.05); border-color: var(--ink); color: var(--ink); }
.share-btn.copied { background: var(--success-50); border-color: var(--success); color: var(--success); }
.share-btn .tooltip {
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--ink); color: var(--white);
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.share-btn:hover .tooltip { opacity: 1; }

/* Prose */
.prose { font-size: 18px; line-height: 1.78; color: var(--ink-2); font-feature-settings: "kern", "liga", "calt"; }
.prose > p:first-of-type::first-letter {
  font-size: 72px; float: left; line-height: 0.92; font-weight: 600;
  padding: 5px 14px 0 0; color: var(--ink); font-family: var(--f-sans);
}
.prose h2 {
  font-size: 30px; line-height: 1.2; letter-spacing: -0.02em;
  margin: 56px 0 18px; color: var(--ink); font-weight: 600;
  scroll-margin-top: calc(var(--header-h) + 24px); position: relative;
}
.prose h2::before {
  content: ""; position: absolute; left: -20px; top: 12px;
  width: 6px; height: 22px; background: var(--primary); border-radius: 3px;
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.prose h2.is-active::before { opacity: 1; }
.prose h3 {
  font-size: 22px; line-height: 1.3; letter-spacing: -0.015em;
  margin: 36px 0 12px; font-weight: 600;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h4 { margin: 28px 0 10px; font-size: 18px; }
.prose p { margin: 0 0 22px; }
.prose a {
  color: var(--primary); text-decoration: none;
  background-image: linear-gradient(var(--primary), var(--primary));
  background-size: 100% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .25s var(--ease-out);
}
.prose a:hover { background-size: 100% 100%; color: var(--white); padding: 0 2px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 0; list-style: none; }
.prose ul li, .prose ol li { margin: 10px 0; padding-left: 30px; position: relative; }
.prose ul li::before {
  content: ""; position: absolute; left: 6px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.prose ol { counter-reset: olc; }
.prose ol li { counter-increment: olc; }
.prose ol li::before {
  content: counter(olc, decimal-leading-zero);
  position: absolute; left: 0; top: 5px;
  font-family: var(--f-mono); font-size: 13px;
  color: var(--primary); font-weight: 600; letter-spacing: -0.02em;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink-2); }
.prose blockquote {
  margin: 36px -8px; padding: 6px 24px;
  border-left: 4px solid var(--primary);
  font-size: 22px; line-height: 1.45; font-weight: 500; letter-spacing: -0.015em;
  color: var(--ink); font-style: italic;
}
.prose blockquote p { margin: 12px 0; }
.prose blockquote cite {
  display: block; font-family: var(--f-mono); font-size: 12px;
  font-style: normal; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--body); margin-top: 10px;
}
.prose code {
  font-family: var(--f-mono); font-size: 0.86em;
  background: var(--primary-50); color: var(--primary-600);
  padding: 2px 6px; border-radius: 5px;
  border: 1px solid rgba(56,111,251,.12);
}
.prose pre {
  background: var(--code-bg); color: #E8EAF1;
  padding: 18px 20px; border-radius: var(--r-lg); overflow-x: auto;
  font-family: var(--f-mono); font-size: 13px; line-height: 1.6;
  margin: 28px 0;
}
.prose pre code { background: transparent; padding: 0; color: inherit; border: 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-lg); }

/* Callout */
.callout {
  margin: 28px 0; padding: 20px 24px; border-radius: 14px;
  border: 1px solid var(--hairline); background: var(--white);
  display: flex; gap: 16px; align-items: flex-start;
  font-size: 15.5px; line-height: 1.6;
}
.callout .ic {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary-50); color: var(--primary);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 600; font-size: 13px;
}
.callout.tip { background: var(--success-50); border-color: rgba(4,197,104,.15); }
.callout.tip .ic { background: var(--success); color: var(--white); }
.callout.warn { background: var(--accent-50); border-color: rgba(255,146,84,.2); }
.callout.warn .ic { background: var(--accent); color: var(--ink); }
.callout .body { flex: 1; color: var(--ink-2); }
.callout .body strong { color: var(--ink); }

/* Code block */
.code-block {
  margin: 28px 0; border-radius: 14px; overflow: hidden;
  background: var(--code-bg); position: relative; border: 1px solid #1d2433;
}
.code-block .topbar-code {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.code-block .lang {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: #8d95a6;
}
.code-block .copy-btn {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: #C8CDD9;
  padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,0.04);
  transition: background .15s, color .15s; cursor: pointer;
}
.code-block .copy-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.code-block .copy-btn.copied { background: var(--success); color: var(--white); }
.code-block pre {
  margin: 0; padding: 20px 22px;
  font-family: var(--f-mono); font-size: 13.5px; line-height: 1.7; color: #E8EAF1; overflow-x: auto;
}
.code-block pre .tok-com { color: #6F7A93; font-style: italic; }
.code-block pre .tok-kw  { color: #FF9254; }
.code-block pre .tok-fn  { color: #6BA9FF; }
.code-block pre .tok-str { color: #6BE3A4; }
.code-block pre .tok-var { color: #DCE9FF; }

/* Pullquote */
.pullquote {
  margin: 40px 0; padding: 28px 0;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  font-size: clamp(22px, 2vw, 28px); line-height: 1.35;
  letter-spacing: -0.02em; font-weight: 500; color: var(--ink); text-wrap: balance;
}
.pullquote::before {
  content: "\201C"; display: block;
  font-family: var(--f-sans); font-size: 60px; line-height: 0.5;
  color: var(--primary); margin-bottom: 8px;
}

/* Post tags + author card */
.post-tags {
  display: flex; flex-wrap: wrap; gap: 8px; padding-top: 32px;
  border-top: 1px solid var(--hairline); margin-top: 48px;
}
.post-tags a {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: 999px;
  background: var(--hairline-2); color: var(--ink-2);
  transition: background .15s, color .15s, transform .15s;
}
.post-tags a:hover { background: var(--ink); color: var(--white); transform: translateY(-1px); }
.author-card {
  margin-top: 36px; padding: 28px;
  border: 1px solid var(--hairline); border-radius: 16px;
  display: grid; grid-template-columns: 64px 1fr auto;
  gap: 20px; align-items: center; background: var(--white);
}
.author-card .av {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--success));
  display: grid; place-items: center;
  color: var(--white); font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
}
.author-card .name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.author-card .role {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--body); margin-top: 2px;
}
.author-card p { color: var(--body); font-size: 14.5px; margin: 8px 0 0; line-height: 1.5; }

/* Prev/Next */
.prev-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 1080px; margin: 56px auto 0; padding: 0 28px;
}
.pn-card {
  padding: 20px 22px; border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--white);
  transition: border-color .2s, transform .2s, box-shadow .25s;
  display: block;
}
.pn-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 28px -12px rgba(10,14,26,.12); }
.pn-card .lbl {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--body); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.pn-card.next { text-align: right; }
.pn-card.next .lbl { justify-content: flex-end; }
.pn-card .ttl { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }

/* Related posts */
.related { max-width: 1180px; margin: 80px auto 0; padding: 0 28px; }
.related h3 {
  font-size: 22px; letter-spacing: -0.02em; font-weight: 600;
  margin-bottom: 28px; display: flex; align-items: center; gap: 12px;
}
.related h3::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.related-card .img {
  aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  position: relative; transition: transform .35s var(--ease-out);
}
.related-card:hover .img { transform: translateY(-3px); }
.related-card .img.v1 { background: linear-gradient(135deg, #FF9254, #ed7028); }
.related-card .img.v2 { background: linear-gradient(135deg, #6B5BFF, #4d3edb); }
.related-card .img.v3 { background: linear-gradient(135deg, #04C568, #028a48); }
.related-card .cat {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); font-weight: 600;
}
.related-card h4 { font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; }
.related-card:hover h4 { color: var(--primary); transition: color .15s; }


/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--ink); color: #C8CDD9; padding: 96px 0 36px; margin-top: 128px; }
.footer h4 {
  color: var(--white); font-size: 12px; font-family: var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 18px; font-weight: 500;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; }
.footer a {
  color: #C8CDD9; font-size: 14.5px; display: block; padding: 6px 0;
  transition: color .15s, transform .15s;
}
.footer a:hover { color: var(--white); transform: translateX(3px); }
.footer .brand-stack .name { color: var(--white); }
.footer .brand-stack .sub { color: #8d95a6; }
.footer-bio { margin-top: 18px; max-width: 320px; font-size: 14.5px; line-height: 1.55; color: #A8B0BF; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid #1d2433; border-radius: 10px;
  font-family: var(--f-mono); font-size: 11px; padding: 0;
  transition: border-color .15s, color .15s, background .15s;
}
.footer-social a:hover { border-color: var(--primary); color: var(--primary); transform: none; }
.footer-bottom {
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid #1d2433;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: #8d95a6;
  font-family: var(--f-mono); letter-spacing: 0.04em;
}
.footer .brand { color: var(--white); }
.footer .brand-mark { background: var(--white); }
.footer .brand-mark::before { background: var(--ink); }
.footer .brand-mark::after { background: var(--success); }

/* ============================================
   SUBHERO (page templates)
   ============================================ */
.subhero { padding: calc(var(--header-h) + 64px) 0 64px; position: relative; }
.subhero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin-top: 18px; max-width: 900px; }
.subhero h1 .b { color: var(--primary); }
.subhero h1 .g { color: var(--success); }
.subhero h1 .o { color: var(--accent); }
.subhero .lede { margin-top: 22px; font-size: 18px; max-width: 640px; }
.subhero .ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.subhero .trust { margin-top: 24px; }
.subhero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  background: var(--white); overflow: hidden;
}
.stat { padding: 36px 28px; border-right: 1px solid var(--hairline); }
.stat:last-child { border-right: 0; }
.stat-num { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.stat-num .plus { color: var(--success); }
.stat-label { font-family: var(--f-mono); font-size: 12px; color: var(--body); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 12px; }

/* Feature tile */
.feature-tile {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  transition: border-color .15s, box-shadow .15s;
}
.feature-tile:hover { border-color: var(--primary); }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--r);
  display: grid; place-items: center;
  background: var(--primary-50); color: var(--primary);
  font-family: var(--f-mono); font-weight: 600;
}
.feature-tile h3 { font-size: 17px; font-weight: 600; }
.feature-tile p { color: var(--body); font-size: 14.5px; margin: 0; line-height: 1.55; }

/* Check list */
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.checklist li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--success-50); color: var(--success);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M5 9.5l2.5 2.5 5-5.5' stroke='%2304C568' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: center;
  margin-top: 2px;
}
.checklist li.x::before {
  background-color: #F4F5F8;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M6 6l6 6M12 6l-6 6' stroke='%23B0B7C5' stroke-width='1.8' stroke-linecap='round'/></svg>");
}

/* Code/mono pill */
.kbd {
  font-family: var(--f-mono); font-size: 12px;
  background: var(--hairline-2); border: 1px solid var(--hairline);
  padding: 2px 7px; border-radius: 5px;
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r);
  background: transparent;
  border: 1px solid var(--hairline);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  cursor: pointer; padding: 0;
  margin-left: auto;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Narrow-desktop nav density — keeps all 7 items on one line between the
   960px drawer breakpoint and the full 1240px container. */
@media (min-width: 961px) and (max-width: 1200px) {
  .nav { gap: 2px; }
  .nav-item { padding: 10px 9px; font-size: 14.5px; }
}
@media (min-width: 961px) and (max-width: 1060px) {
  .nav-item { padding: 10px 7px; font-size: 14px; }
  .brand-sub { display: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .topbar-inner { gap: 0; height: 64px; }
  .menu-toggle { display: inline-flex; }
  .topbar-inner > .btn,
  .topbar-inner > .btn-primary { display: none; }
  .nav-spacer { display: none; }

  .nav {
    position: fixed; left: 0; right: 0; top: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 20px 24px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    transform: translateY(-12px); opacity: 0;
    pointer-events: none;
    transition: opacity .18s, transform .18s;
    flex: none;
  }
  .menu-open .nav {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav a, .nav .item {
    display: flex; padding: 14px 4px;
    border-bottom: 1px solid var(--hairline-2);
    font-size: 16px; width: 100%;
  }
  .nav .item { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav .item .caret { display: none; }
  .dropdown {
    display: block; position: static;
    background: transparent; border: 0; box-shadow: none;
    padding: 6px 0 0; min-width: 0;
  }
  .dropdown a {
    padding: 8px 14px; font-size: 14.5px;
    border-bottom: 0; color: var(--body);
  }
  .dropdown .divider { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  .cta-banner-small { padding: 36px 24px; border-radius: var(--r-lg); }
  .cta-banner-small .ctas .btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 24px 20px; }
  .stat-num { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { font-size: 12px; }
  .h-display { font-size: 40px; line-height: 1.05; }
  .h-1 { font-size: 32px; }
  .h-2 { font-size: 26px; }
  .lede { font-size: 16px; }
  .btn-lg { padding: 13px 18px; font-size: 14.5px; }
  .section { padding: 48px 0; }

  /* Tables -> stack via overflow */
  .compare { display: block; overflow-x: auto; }
  .compare th, .compare td { white-space: nowrap; }
}
/* FluxPress — Page-specific styles for services, plugin, docs, about */

/* Sub hero (smaller) */
.subhero { padding: 88px 0 64px; position: relative; }
@media (max-width: 600px) {
  .subhero { padding: 48px 0 32px; }
  .subhero h1 { font-size: 36px; }
  .subhero .lede { font-size: 16px; margin-top: 16px; }
  .subhero .ctas { flex-direction: column; }
  .subhero .ctas .btn { width: 100%; justify-content: center; }
}
.subhero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin-top: 18px; max-width: 900px; }
.subhero h1 .b { color: var(--primary); }
.subhero h1 .g { color: var(--success); }
.subhero h1 .o { color: var(--accent); }
.subhero .lede { margin-top: 22px; font-size: 18px; max-width: 640px; }
.subhero .ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.subhero .trust { margin-top: 24px; }
.subhero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .subhero-grid { grid-template-columns: 1fr; } }

/* Icon grid */
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .icon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .icon-grid { grid-template-columns: 1fr; } }
.icon-tile {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.icon-tile:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.icon-tile .ic {
  width: 36px; height: 36px; border-radius: var(--r);
  background: var(--primary-50); color: var(--primary);
  display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; font-size: 16px;
}
.icon-tile h3, .icon-tile h4 { font-size: 16px; font-weight: 600; }
.icon-tile p { color: var(--body); font-size: 14px; margin: 0; line-height: 1.55; }

/* Pricing tiers */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }
.tier {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.tier.popular { border-color: var(--ink); box-shadow: 0 24px 60px -20px rgba(10,14,26,.18); }
.tier.popular::before {
  content: "Most popular"; position: absolute; top: -12px; left: 28px;
  background: var(--ink); color: var(--white); font-family: var(--f-mono);
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
}
.tier .tname { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--body); }
.tier h3 { font-size: 22px; font-weight: 600; }
.tier .tprice { display: flex; align-items: baseline; gap: 6px; }
.tier .tprice .v { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; }
.tier .tprice .u { color: var(--body); font-size: 14px; }
.tier .speed-line {
  font-family: var(--f-mono); font-size: 13px; padding: 10px 12px;
  background: var(--success-50); color: #027b41; border-radius: var(--r);
  display: flex; align-items: center; gap: 8px;
}
.tier .speed-line.warn { background: var(--accent-50); color: #b3551c; }
.tier .checklist { flex: 1; }
.tier .btn { justify-content: center; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 32px 28px; position: relative;
  display: flex; flex-direction: column; gap: 12px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  color: var(--primary); letter-spacing: 0.08em;
}
.step h3, .step h4 { font-size: 19px; font-weight: 600; }
.step p { color: var(--body); font-size: 15px; margin: 0; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); padding: 20px 0; }
.faq-item summary {
  list-style: none; cursor: pointer;
  font-size: 18px; font-weight: 600; letter-spacing: -0.015em;
  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-weight: 400; font-size: 24px; color: var(--body);
  transition: transform .15s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--body); font-size: 15.5px; line-height: 1.6; margin: 14px 0 0; max-width: 760px; }

/* Comparison table */
.compare {
  width: 100%; border-collapse: collapse;
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden;
}
.compare th, .compare td {
  text-align: left; padding: 14px 22px; font-size: 14.5px;
  border-bottom: 1px solid var(--hairline);
}
.compare thead th {
  background: #F4F5F8; font-family: var(--f-mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
  color: var(--body); padding: 18px 22px;
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare th.feat { width: 50%; }
.compare td.cell { text-align: center; width: 25%; font-family: var(--f-mono); }
.compare th.col-pro { background: var(--ink); color: var(--white); }
.compare .yes { color: var(--success); font-size: 18px; }
.compare .no  { color: #d6dae3; font-size: 18px; }
.compare .feat-name { font-weight: 500; color: var(--ink); font-size: 15px; }
.compare tbody tr:hover { background: #FAFBFD; }

/* Use cases */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
}
.usecase .num { font-family: var(--f-mono); font-size: 11px; color: var(--primary); letter-spacing: 0.08em; }
.usecase h3, .usecase h4 { font-size: 18px; font-weight: 600; }
.usecase p { color: var(--body); font-size: 14.5px; margin: 0; }

/* Pro deep dive blocks */
.deep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 64px; }
@media (max-width: 860px) { .deep-grid { grid-template-columns: 1fr; gap: 36px; } }
.deep-block .num { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }
.deep-block h3 { font-size: 22px; font-weight: 600; margin-top: 6px; }
.deep-block p { color: var(--body); font-size: 15.5px; margin-top: 10px; line-height: 1.6; }

/* Docs sidebar */
.docs-shell { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 48px 0 96px; align-items: start; }
@media (max-width: 980px) { .docs-shell { grid-template-columns: 1fr; gap: 24px; } }
.docs-side {
  position: sticky; top: 96px; align-self: start;
  font-size: 14px;
}
.docs-side h5,
.docs-side .docs-nav-label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--body); margin: 16px 0 8px; font-weight: 600; }
.docs-side a { display: block; padding: 6px 0; color: var(--body); border-left: 2px solid transparent; padding-left: 12px; margin-left: -12px; }
.docs-side a:hover { color: var(--ink); }
.docs-side a.active { color: var(--primary); border-color: var(--primary); }
.docs-content { max-width: 760px; }
.docs-content h2 { font-size: 32px; letter-spacing: -0.025em; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.docs-content h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.docs-content h3 { font-size: 19px; margin-top: 32px; font-weight: 600; }
.docs-content p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin: 14px 0; }
.docs-content ul, .docs-content ol { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; padding-left: 22px; }
.docs-content li { margin: 4px 0; }
.docs-content code { font-family: var(--f-mono); font-size: 13px; background: var(--hairline-2); padding: 1px 6px; border-radius: 4px; }
.docs-content pre {
  font-family: var(--f-mono); font-size: 13px;
  background: var(--code-bg); color: #C8CDD9;
  padding: 18px 20px; border-radius: var(--r-lg); overflow-x: auto;
  line-height: 1.6;
}
.docs-content pre code { background: transparent; padding: 0; color: inherit; }
.docs-content blockquote {
  border-left: 3px solid var(--primary); padding: 4px 16px; margin: 16px 0;
  color: var(--ink-2); font-size: 15.5px; background: var(--primary-50);
  border-radius: 0 var(--r) var(--r) 0;
}
.docs-content .callout {
  border: 1px solid var(--hairline); border-left: 3px solid var(--accent);
  background: var(--accent-50); border-radius: var(--r);
  padding: 14px 18px; margin: 18px 0; font-size: 14.5px; color: var(--ink-2);
}
.docs-content .callout.tip { border-left-color: var(--success); background: var(--success-50); }
.docs-content .callout strong { color: var(--ink); }

/* About — values grid */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }
.value {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 28px;
}
.value h3, .value h4 { font-size: 19px; font-weight: 600; }
.value p { color: var(--body); font-size: 15px; margin-top: 10px; line-height: 1.6; }
.value .num { font-family: var(--f-mono); font-size: 12px; color: var(--primary); letter-spacing: 0.08em; }

/* Numbers strip (about) */
.numbers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--white); }
@media (max-width: 860px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
.numbers .stat { padding: 28px; border-right: 1px solid var(--hairline); }
.numbers .stat:last-child { border-right: 0; }
.numbers .stat-num { font-size: 32px; }

/* Banner small */
.cta-banner-small {
  background: var(--ink); color: var(--white);
  border-radius: var(--r-xl); padding: 56px 48px; position: relative; overflow: hidden;
}
.cta-banner-small h2 { color: white; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.025em; }
.cta-banner-small p { color: #C8CDD9; max-width: 540px; margin-top: 12px; font-size: 16px; }
.cta-banner-small .ctas { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Page-level mobile tweaks */
@media (max-width: 600px) {
  .compare th, .compare td { padding: 12px 14px; font-size: 13px; }
  .docs-content h2 { font-size: 26px; }
  .docs-content pre { font-size: 12px; padding: 14px; }
  .feature-tile { padding: 22px; }
  .step { padding: 24px 22px; }
  .tier { padding: 26px 22px; }
  .tier .tprice .v { font-size: 36px; }
  .value { padding: 22px; }
  .numbers .stat { padding: 20px 16px; }
  .numbers .stat-num { font-size: 26px; }
}

/* Plugin page specific */
.feature-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .feature-tile-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .feature-tile-grid { grid-template-columns: 1fr; } }

/* Plugin admin showcase (full-width screenshot) */
.admin-screen {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg);
}
.admin-screen .topchrome {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #F4F5F8; border-bottom: 1px solid var(--hairline);
}
.admin-screen .topchrome .dots { display: flex; gap: 6px; }
.admin-screen .topchrome .dots span { width: 11px; height: 11px; border-radius: 50%; background: #d6dae3; }
.admin-screen .topchrome .dots span:nth-child(1) { background: #ff5f57; }
.admin-screen .topchrome .dots span:nth-child(2) { background: #febc2e; }
.admin-screen .topchrome .dots span:nth-child(3) { background: #28c840; }
.admin-screen .topchrome .addr { flex: 1; font-family: var(--f-mono); font-size: 12px; color: var(--body); text-align: center; background: var(--white); border: 1px solid var(--hairline); border-radius: 6px; padding: 4px 10px; }
.admin-screen .body { display: grid; grid-template-columns: 200px 1fr; min-height: 500px; }
@media (max-width: 760px) {
  .admin-screen .body { grid-template-columns: 1fr; min-height: 0; }
  .admin-screen .side { display: none; }
  .admin-screen .topchrome .addr { font-size: 10px; padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs-row { padding: 0 14px; overflow-x: auto; }
  .tabs-row .tab { white-space: nowrap; padding: 12px 12px; font-size: 13px; }
  .rule-full .header { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .rule-full .header .preview { font-size: 11px; }
  .rule-full .body-row { grid-template-columns: 1fr; padding: 12px 14px; gap: 12px; }
  .rule-full .footer-meta { padding: 10px 14px; gap: 8px; }
}
.admin-screen .side { background: #1d2433; padding: 16px 12px; }
.admin-screen .side .row { color: #C8CDD9; font-size: 13px; padding: 8px 10px; border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.admin-screen .side .row.active { background: var(--primary); color: white; }
.admin-screen .side .row .ic { width: 14px; height: 14px; border-radius: 3px; background: rgba(255,255,255,0.15); flex: none; }
.admin-screen .side .row.active .ic { background: rgba(255,255,255,0.3); }

.tabs-row { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); padding: 0 24px; }
.tabs-row .tab { padding: 14px 16px; font-size: 14px; font-weight: 500; color: var(--body); border-bottom: 2px solid transparent; }
.tabs-row .tab.active { color: var(--primary); border-color: var(--primary); }

.rule-full {
  border: 1px solid var(--hairline); border-radius: var(--r); margin-bottom: 14px;
  background: var(--white); overflow: hidden;
}
.rule-full .header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: #FAFBFD; border-bottom: 1px solid var(--hairline);
}
.rule-full .header .num { font-family: var(--f-mono); font-size: 11px; color: var(--body); letter-spacing: 0.08em; font-weight: 600; }
.rule-full .header .preview { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.rule-full .header .actions { display: flex; align-items: center; gap: 12px; }
.rule-full .body-row { padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rule-full label { font-family: var(--f-mono); font-size: 11px; color: var(--body); display: block; margin-bottom: 6px; letter-spacing: 0.08em; text-transform: uppercase; }
.rule-full input { width: 100%; padding: 8px 10px; font-family: var(--f-mono); font-size: 13px; border: 1px solid var(--hairline); border-radius: 5px; color: var(--ink); }
.rule-full .footer-meta { padding: 10px 18px; border-top: 1px solid var(--hairline); display: flex; gap: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--body); flex-wrap: wrap; }
.rule-full .footer-meta .pill { padding: 2px 8px; background: var(--hairline-2); border-radius: 4px; }

.toggle-sw { width: 32px; height: 18px; border-radius: 999px; background: var(--success); position: relative; }
.toggle-sw::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: white; }
.toggle-sw.off { background: var(--hairline); }
.toggle-sw.off::after { right: auto; left: 2px; }

.trash-ic { width: 16px; height: 16px; opacity: 0.5; }

/* === Hero variants (homepage) === */
  /* Hero variants */
  .hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
  .hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
  @media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
  .hero h1 { font-size: clamp(44px, 5.6vw, 78px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 600; }
  .hero h1 .b { color: var(--primary); }
  .hero h1 .g { color: var(--success); }
  .hero .lede { font-size: 18px; color: var(--body); max-width: 540px; margin-top: 20px; line-height: 1.55; }
  .hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

  /* Hero visual: PageSpeed mock */
  .pagespeed-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
  }
  .pagespeed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
  .pagespeed-head .url { font-family: var(--f-mono); font-size: 13px; color: var(--body); display: flex; align-items: center; gap: 8px; }
  .pagespeed-head .url::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-50); }
  .pagespeed-head .badge-blue { font-family: var(--f-mono); }

  .gauges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .gauge { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: var(--r); }
  .gauge .ring {
    --pct: 100;
    width: 92px; height: 92px; border-radius: 50%;
    background: conic-gradient(var(--success) calc(var(--pct) * 1%), var(--hairline-2) 0);
    display: grid; place-items: center; position: relative;
  }
  .gauge .ring::before { content: ""; position: absolute; inset: 9px; background: var(--white); border-radius: 50%; }
  .gauge .ring span { position: relative; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--success); }
  .gauge .lbl { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--body); }
  .vitals { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .vital { padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--r); }
  .vital .v { font-size: 18px; font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: 4px; }
  .vital .v small { font-size: 11px; color: var(--body); font-weight: 500; }
  .vital .l { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--body); margin-top: 4px; }
  .vital .dot { display:inline-block; width:8px;height:8px;border-radius:50%; background: var(--success); margin-right: 6px; }

  /* Hero variant: typographic */
  .hero-typo h1 { font-size: clamp(56px, 9vw, 144px); line-height: 0.92; }
  .hero-typo .marquee {
    margin-top: 56px; padding: 18px 0;
    border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
    display: flex; gap: 36px; overflow: hidden; white-space: nowrap;
    font-family: var(--f-mono); font-size: 13px; color: var(--body);
    letter-spacing: 0.06em; text-transform: uppercase;
  }
  .hero-typo .marquee span::before { content: "✦ "; color: var(--accent); }

  /* Hero variant: terminal / admin mock */
  .admin-mock {
    background: var(--white); border: 1px solid var(--hairline);
    border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  }
  .admin-mock .topchrome {
    display: flex; align-items: center; gap: 8px; padding: 12px 16px;
    background: #F4F5F8; border-bottom: 1px solid var(--hairline);
  }
  .admin-mock .topchrome .dots { display: flex; gap: 6px; }
  .admin-mock .topchrome .dots span { width: 11px; height: 11px; border-radius: 50%; background: #d6dae3; }
  .admin-mock .topchrome .dots span:nth-child(1) { background: #ff5f57; }
  .admin-mock .topchrome .dots span:nth-child(2) { background: #febc2e; }
  .admin-mock .topchrome .dots span:nth-child(3) { background: #28c840; }
  .admin-mock .topchrome .addr { flex: 1; font-family: var(--f-mono); font-size: 12px; color: var(--body); text-align: center; background: var(--white); border: 1px solid var(--hairline); border-radius: 6px; padding: 4px 10px; }
  .admin-body { display: grid; grid-template-columns: 180px 1fr; min-height: 380px; }
  .admin-side { background: #1d2433; padding: 16px 12px; }
  .admin-side .row { color: #C8CDD9; font-size: 12.5px; padding: 7px 10px; border-radius: 6px; display: flex; align-items: center; gap: 8px; }
  .admin-side .row.active { background: var(--primary); color: white; }
  .admin-side .row .ic { width: 14px; height: 14px; border-radius: 3px; background: rgba(255,255,255,0.15); flex: none; }
  .admin-side .row.active .ic { background: rgba(255,255,255,0.3); }
  .admin-content { padding: 20px 22px; }
  .admin-content h3, .admin-content h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
  .rule-card { border: 1px solid var(--hairline); border-radius: var(--r); padding: 14px; margin-bottom: 10px; }
  .rule-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .rule-card .num { font-family: var(--f-mono); font-size: 11px; color: var(--body); }
  .rule-card .toggle { width: 28px; height: 16px; border-radius: 999px; background: var(--success); position: relative; }
  .rule-card .toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: white; }
  .rule-card .toggle.off { background: var(--hairline); }
  .rule-card .toggle.off::after { right: auto; left: 2px; }
  .rule-card .fr { display: flex; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 12px; }
  .rule-card .fr .from { color: #c0241a; background: #fdecea; padding: 2px 6px; border-radius: 4px; }
  .rule-card .fr .to { color: var(--success); background: var(--success-50); padding: 2px 6px; border-radius: 4px; }
  .rule-card .fr .arr { color: var(--muted); }

  /* Stats */
  .stats-section { padding: 64px 0; }

  /* Two-card split */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  @media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
  .split-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: 36px;
    transition: border-color .15s, box-shadow .15s;
    display: flex; flex-direction: column; gap: 16px;
  }
  .split-card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
  .split-card .ic-wrap {
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--primary-50); color: var(--primary);
    display: grid; place-items: center;
  }
  .split-card.s2 .ic-wrap { background: var(--success-50); color: var(--success); }
  .split-card h3 { font-size: 24px; letter-spacing: -0.02em; }
  .split-card p { color: var(--body); font-size: 15.5px; margin: 0; }
  .split-card a { color: var(--primary); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }

  /* Plugin card */
  .plugin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  @media (max-width: 960px) { .plugin-grid { grid-template-columns: 1fr; } }
  .plugin-card {
    background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg);
    padding: 28px; display: flex; flex-direction: column; gap: 18px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
  }
  .plugin-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
  .plugin-card .head { display: flex; justify-content: space-between; align-items: flex-start; }
  .plugin-icon {
    width: 48px; height: 48px; border-radius: var(--r);
    display: grid; place-items: center;
    background: var(--ink); color: var(--white);
    font-family: var(--f-mono); font-weight: 600; letter-spacing: -0.02em;
    font-size: 18px;
  }
  .plugin-card.p2 .plugin-icon { background: var(--primary); }
  .plugin-card.p3 .plugin-icon { background: var(--success); color: var(--ink); }
  .plugin-card h3 { font-size: 20px; }
  .plugin-card p { color: var(--body); font-size: 14.5px; margin: 0; }
  .plugin-card .more { margin-top: auto; padding-top: 8px; color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; }

  /* Service card */
  .svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  @media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr; } }
  .svc-card {
    background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg);
    padding: 32px; display: flex; flex-direction: column; gap: 14px;
    position: relative; overflow: hidden;
  }
  .svc-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--primary);
  }
  .svc-card.s2::before { background: var(--accent); }
  .svc-card.s3::before { background: var(--success); }
  .svc-card .price-row { display: flex; align-items: baseline; gap: 8px; }
  .svc-card .price { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; }
  .svc-card .price-prefix { font-family: var(--f-mono); font-size: 12px; color: var(--body); text-transform: uppercase; letter-spacing: 0.08em; }
  .svc-card h3 { font-size: 21px; }
  .svc-card p { color: var(--body); font-size: 14.5px; margin: 0; flex: 1; }

  /* Testimonials */
  .reviews-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  }
  @media (max-width: 960px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }
  .review {
    background: var(--white); border: 1px solid var(--hairline);
    border-radius: var(--r-lg); padding: 24px;
    display: flex; flex-direction: column; gap: 14px;
  }
  .review .stars { font-size: 14px; }
  .review .quote { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
  .review .who { display: flex; align-items: center; gap: 10px; padding-top: 4px; border-top: 1px solid var(--hairline-2); padding-top: 14px; }
  .review .avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary-50); color: var(--primary);
    display: grid; place-items: center; font-weight: 600; font-size: 13px;
  }
  .review .name { font-size: 13.5px; font-weight: 600; }
  .review .meta { font-size: 12px; color: var(--body); font-family: var(--f-mono); }

  /* Blog */
  .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  @media (max-width: 960px) { .blog-grid { grid-template-columns: 1fr; } }
  .blog-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
  .blog-card .img {
    height: 180px;
    background: repeating-linear-gradient(135deg, #EEF1F6 0 14px, #F5F7FB 14px 28px);
    border-bottom: 1px solid var(--hairline);
    display: grid; place-items: center;
    font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
  }
  .blog-card.b1 .img { background: linear-gradient(135deg, #386FFB 0%, #1d3fad 100%); color: rgba(255,255,255,0.5); }
  .blog-card.b2 .img { background: var(--ink); color: rgba(255,255,255,0.4); }
  .blog-card.b3 .img { background: linear-gradient(135deg, #04C568 0%, #027b41 100%); color: rgba(255,255,255,0.5); }
  .blog-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
  .blog-card .cat { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
  .blog-card h3,
  .blog-card h2 { font-size: 18px; line-height: 1.3; }
  .blog-card .excerpt { color: var(--body); font-size: 14px; line-height: 1.55; }
  .blog-card .more { color: var(--primary); font-weight: 600; font-size: 13.5px; }

  /* CTA banner */
  .cta-banner {
    background: var(--ink); color: var(--white);
    border-radius: var(--r-xl); padding: 64px 56px;
    position: relative; overflow: hidden;
  }
  .cta-banner h2 { color: var(--white); font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; }
  .cta-banner p { color: #C8CDD9; max-width: 520px; margin-top: 14px; font-size: 17px; }
  .cta-banner .ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
  .cta-banner .glow {
    position: absolute; right: -120px; top: -120px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(56,111,251,0.25) 0%, transparent 70%);
    pointer-events: none;
  }
  .cta-banner .glow2 {
    position: absolute; left: 30%; bottom: -200px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(4,197,104,0.18) 0%, transparent 70%);
    pointer-events: none;
  }

  /* Hero variant: bg variations */
  body.bg-grid .hero { background-image: radial-gradient(circle, #d6dcea 1px, transparent 1px); background-size: 28px 28px; background-position: 0 0; }
  body.bg-tint .hero { background: linear-gradient(180deg, #EEF7FF 0%, transparent 100%); }
  body.bg-clean .hero { background: var(--bg); }

  .section-cta { display: flex; justify-content: center; margin-top: 40px; }
  .arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--primary); }
  .arrow-link:hover .arr { transform: translateX(4px); }
  .arr { transition: transform .15s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 200px minmax(0, 1fr) 64px; gap: 40px; }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .wrap, .wrap-narrow, .wrap-tight { padding: 0 20px; }
  .topbar .nav, .topbar .btn-account, .topbar .btn.btn-primary { display: none; }
  .nav-spacer { display: none; }
  .menu-toggle { display: flex; }

  .subhero { padding: calc(var(--header-h) + 40px) 0 48px; }
  .subhero h1 { font-size: 36px; }
  .subhero .lede { font-size: 16px; margin-top: 16px; }
  .subhero .ctas { flex-direction: column; }
  .subhero .ctas .btn { width: 100%; justify-content: center; }
  .subhero-grid { grid-template-columns: 1fr; }

  .featured-post { grid-template-columns: 1fr; gap: 28px; }
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .post-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc {
    position: static; padding: 16px 20px;
    background: var(--white); border: 1px solid var(--hairline); border-radius: 14px;
  }
  .toc-collapser {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; padding: 4px 0;
  }
  .toc-collapser .plus { font-size: 20px; color: var(--body); transition: transform .25s; }
  .toc.is-collapsed .toc-list { display: none; }
  .toc.is-collapsed .toc-collapser .plus { transform: rotate(0); }
  .toc:not(.is-collapsed) .toc-collapser .plus { transform: rotate(45deg); color: var(--primary); }

  .share-rail {
    position: static; flex-direction: row; justify-content: center;
    margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline);
  }
  .share-rail .lbl { writing-mode: horizontal-tb; transform: none; margin: 0 8px 0 0; }
  .share-btn .tooltip { display: none; }

  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .section { padding: 64px 0; }
  .post-hero { padding-top: calc(var(--header-h) + 40px); }
  .featured-img { margin-top: 32px; padding: 0 20px; }
  .blog-hero { padding-top: calc(var(--header-h) + 48px); }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .section-head { margin-bottom: 40px; }
  .cta-banner-small { padding: 36px 24px; border-radius: var(--r-lg); }
  .cta-banner-small .ctas .btn { width: 100%; justify-content: center; }
  .plugin-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .prev-next { grid-template-columns: 1fr; }
  .author-card { grid-template-columns: 56px 1fr; }
  .author-card .btn { grid-column: 1 / -1; justify-content: center; }
  .author-card .av { width: 56px; height: 56px; font-size: 20px; }

  .prose { font-size: 17px; }
  .prose > p:first-of-type::first-letter { font-size: 58px; }
  .prose blockquote { font-size: 19px; padding: 4px 18px; }
  .pullquote { font-size: 20px; }
  .featured-img { margin-top: 24px; }

  .filter-row { gap: 6px; padding: 18px 0; }
  .filter-pill { font-size: 11px; padding: 8px 12px; }

  .wrap, .wrap-narrow { padding: 0 16px; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 24px 20px; }
  .stat-num { font-size: 36px; }
  .footer-bottom { font-size: 12px; }
  .h-display { font-size: 40px; line-height: 1.05; }
  .h-1 { font-size: 32px; }
  .h-2 { font-size: 26px; }
  .lede { font-size: 16px; }
  .btn-lg { padding: 13px 18px; font-size: 14.5px; }
  .section { padding: 48px 0; }
  .reviews-grid { grid-template-columns: 1fr; }
  .compare th, .compare td { white-space: nowrap; }
}

/* Page-level mobile tweaks */
@media (max-width: 600px) {
  .compare th, .compare td { padding: 12px 14px; font-size: 13px; }
  .docs-content h2 { font-size: 26px; }
  .docs-content pre { font-size: 12px; padding: 14px; }
  .feature-tile { padding: 22px; }
  .step { padding: 24px 22px; }
  .tier { padding: 26px 22px; }
  .tier .tprice .v { font-size: 36px; }
  .value { padding: 22px; }
  .numbers .stat { padding: 20px 16px; }
  .numbers .stat-num { font-size: 26px; }
  .cta-banner .ctas .btn { width: 100%; justify-content: center; }
}
@media (max-width: 760px) {
  .admin-screen .body { grid-template-columns: 1fr; min-height: 0; }
  .admin-screen .side { display: none; }
  .admin-screen .topchrome .addr { font-size: 10px; padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs-row { padding: 0 14px; overflow-x: auto; }
  .tabs-row .tab { white-space: nowrap; padding: 12px 12px; font-size: 13px; }
  .rule-full .header { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .rule-full .header .preview { font-size: 11px; }
  .rule-full .body-row { grid-template-columns: 1fr; padding: 12px 14px; gap: 12px; }
  .rule-full .footer-meta { padding: 10px 14px; gap: 8px; }
}

/* Comments - see full styles below */

/* ESR pricing 2-column responsive override */
.pricing-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
@media (max-width: 820px) { .pricing-grid-2 { grid-template-columns: 1fr !important; } }

/* About — "What we make" 4-card grid */
.make-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .make-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .make-grid { grid-template-columns: 1fr; } }
.make-card {
  display: block; padding: 28px 24px; background: var(--white);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s;
}
.make-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.make-card .badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.make-card h3 { margin: 18px 0 8px; font-size: 18px; }
.make-card p { color: var(--body); font-size: 14.5px; line-height: 1.55; }

/* Nav Pro badge */
.nav-pro-badge {
  display: inline-block; background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.06em; vertical-align: middle; margin-left: 4px; line-height: 1.3;
}

/* Mobile account link */
.nav-account-mobile { display: none; }
@media (max-width: 960px) {
  .nav-account-mobile { display: flex; padding: 14px 4px; border-bottom: 1px solid var(--hairline-2); font-size: 16px; width: 100%; font-weight: 600; color: var(--primary) !important; }
}
@media (min-width: 961px) { a.nav-account-mobile { display: none; } }

/* Blog featured image height cap (legacy compat) */
.blog-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ============================================
   COMMENTS — full WP override
   ============================================ */
.comments-area {
  font-size: 15px; line-height: 1.6; color: var(--ink-2);
}
/* Title */
.comments-title,
h2.comments-title,
h3.comments-title {
  font-size: 20px !important; font-weight: 600 !important; letter-spacing: -0.02em;
  margin: 0 0 32px !important; padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink) !important;
  display: block !important;
}
/* Kill ALL default WP list numbering */
ol.comment-list,
.comment-list,
.comment-list ol,
.comment-list ul,
.comment-list .children {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  counter-reset: none !important;
}
ol.comment-list > li,
.comment-list li {
  list-style: none !important;
}
ol.comment-list > li::before,
.comment-list li::before,
.comment-list li::marker,
ol.comment-list > li::marker {
  content: none !important; display: none !important;
}
/* Each comment */
.comment-list > .comment,
.comment-list > li {
  padding: 28px 0 !important;
  border-bottom: 1px solid var(--hairline) !important;
  position: relative;
  margin: 0 !important;
}
.comment-list > .comment:first-child,
.comment-list > li:first-child { padding-top: 0 !important; }
.comment-list > .comment:last-child,
.comment-list > li:last-child { border-bottom: 0 !important; }
/* Comment body */
.comment-body {
  display: flex; flex-direction: column; gap: 0;
}
/* Header: avatar + author */
.comment-meta.commentmetadata,
.comment-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px !important;
}
.comment-author {
  display: inline-flex !important; align-items: center !important; gap: 10px !important;
  font-size: 15px; float: none !important;
}
.comment-author .avatar,
.comment-author img.avatar {
  width: 40px !important; height: 40px !important; border-radius: 12px !important;
  object-fit: cover; flex-shrink: 0;
  float: none !important; margin: 0 !important;
}
.comment-author .fn,
.comment-author .fn a {
  font-size: 15px !important; font-weight: 600 !important; color: var(--ink) !important;
  text-decoration: none !important;
}
.comment-author .fn a:hover { color: var(--primary) !important; }
.comment-author .says { display: none !important; }
/* Date */
.comment-metadata,
.commentmetadata {
  font-family: var(--f-mono) !important; font-size: 11px !important;
  letter-spacing: 0.08em !important; text-transform: uppercase !important;
  color: var(--muted) !important; font-weight: 500;
}
.comment-metadata a,
.commentmetadata a {
  color: var(--muted) !important; text-decoration: none !important;
  transition: color .15s;
}
.comment-metadata a:hover,
.commentmetadata a:hover { color: var(--ink) !important; }
.comment-edit-link {
  color: var(--primary) !important; font-weight: 600 !important;
}
/* Comment text */
.comment-content {
  font-size: 15.5px; line-height: 1.65; color: var(--ink-2);
}
.comment-content p { margin: 0 0 12px; }
.comment-content p:last-child { margin-bottom: 0; }
/* Awaiting moderation */
.comment-awaiting-moderation,
p.comment-awaiting-moderation {
  display: inline-block !important; margin-top: 8px !important;
  padding: 6px 14px !important; border-radius: 999px !important;
  background: var(--accent-50) !important; color: #b3551c !important;
  font-family: var(--f-mono) !important; font-size: 11px !important;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
}
/* ---- Reply button ---- */
.reply {
  margin-top: 14px !important;
}
.comment-reply-link,
a.comment-reply-link,
.comment-reply-login {
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  padding: 7px 16px !important;
  font-family: var(--f-mono) !important; font-size: 11px !important; font-weight: 600 !important;
  letter-spacing: 0.06em !important; text-transform: uppercase !important;
  color: var(--primary) !important; background: var(--primary-50) !important;
  border: 1px solid rgba(56,111,251,.15) !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s !important;
  cursor: pointer !important;
  line-height: 1 !important;
}
.comment-reply-link:hover,
a.comment-reply-link:hover,
.comment-reply-login:hover {
  background: var(--primary) !important; color: var(--white) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -6px rgba(56,111,251,.35) !important;
}
.comment-reply-link::before {
  content: "↩" !important; font-size: 12px; display: inline-block;
}
/* ---- Nested replies ---- */
.comment-list .children {
  margin: 20px 0 0 0 !important;
  padding-left: 32px !important;
  border-left: 2px solid var(--primary-100) !important;
}
.comment-list .children > .comment,
.comment-list .children > li {
  padding: 20px 0 !important;
  border-bottom: 1px solid var(--hairline-2) !important;
}
.comment-list .children > li:last-child { border-bottom: 0 !important; }
.comment-list .children .comment-author img.avatar {
  width: 34px !important; height: 34px !important; border-radius: 10px !important;
}
/* ---- Comment form ---- */
.comment-respond {
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.comment .comment-respond {
  margin-top: 24px; padding-top: 24px;
}
#reply-title,
.comment-reply-title {
  font-size: 20px !important; font-weight: 600 !important; letter-spacing: -0.02em;
  margin: 0 0 24px !important;
  display: flex !important; align-items: center !important; gap: 12px; flex-wrap: wrap;
  color: var(--ink) !important;
}
.comment-reply-title small {
  font-size: 13px; font-weight: 500;
}
.comment-reply-title small a,
#cancel-comment-reply-link {
  color: var(--primary) !important; text-decoration: none !important;
  font-family: var(--f-mono) !important; font-size: 11px !important;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 14px !important; border-radius: 999px !important;
  background: var(--hairline-2) !important;
  transition: background .15s, color .15s !important;
}
.comment-reply-title small a:hover,
#cancel-comment-reply-link:hover {
  background: var(--ink) !important; color: var(--white) !important;
}
.logged-in-as {
  font-size: 13.5px; color: var(--body); margin-bottom: 20px;
  font-family: var(--f-mono); letter-spacing: 0.02em;
}
.logged-in-as a { color: var(--primary); text-decoration: none; }
.logged-in-as a:hover { text-decoration: underline; }
.comment-notes {
  font-size: 13.5px; color: var(--body); margin-bottom: 20px;
}
.comment-form p { margin: 0 !important; }
.comment-form {
  display: flex; flex-direction: column; gap: 18px;
}
.comment-form label {
  display: block;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--body); margin-bottom: 8px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100% !important; padding: 14px 18px !important;
  font-family: var(--f-sans) !important; font-size: 15px !important;
  color: var(--ink) !important; background: var(--white) !important;
  border: 1px solid var(--hairline) !important;
  border-radius: 12px !important;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(56,111,251,.08) !important;
}
.comment-form textarea {
  min-height: 140px; resize: vertical;
}
.comment-form .form-submit { margin-top: 4px; }
.comment-form .submit,
.comment-form input[type="submit"] {
  display: inline-flex !important; align-items: center; gap: 8px;
  padding: 14px 28px !important; font-size: 15px !important; font-weight: 600 !important;
  background: var(--ink) !important; color: var(--white) !important;
  border: none !important; border-radius: 12px !important;
  cursor: pointer !important;
  font-family: var(--f-sans) !important;
  transition: background .15s, transform .12s, box-shadow .2s;
  -webkit-appearance: none;
}
.comment-form .submit:hover,
.comment-form input[type="submit"]:hover {
  background: var(--ink-2) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(10,14,26,.4);
}
.comment-form .submit:active,
.comment-form input[type="submit"]:active { transform: translateY(0); }
/* Cookies checkbox */
.comment-form-cookies-consent {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--body);
}
.comment-form-cookies-consent input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--primary);
}
/* Desktop grid */
@media (min-width: 641px) {
  .comment-form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  }
  .comment-form-comment,
  .comment-form .form-submit,
  .comment-notes, .logged-in-as,
  .comment-form-cookies-consent {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .comment-list .children { padding-left: 18px !important; }
}
/* Pingback / trackback */
.comment-list .pingback,
.comment-list .trackback {
  padding: 14px 0; font-size: 13.5px; color: var(--body);
  border-bottom: 1px solid var(--hairline);
  list-style: none !important;
}
.comment-list .pingback::before,
.comment-list .trackback::before { content: none !important; display: none !important; }
.comment-list .pingback a,
.comment-list .trackback a { color: var(--primary); }

/* CTA banner glow animation */
@keyframes glowFloat {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-30px, 20px); }
}
.cta-banner .glow {
  animation: glowFloat 8s ease-in-out infinite alternate;
}
.cta-banner .glow2 {
  animation: glowFloat 10s ease-in-out infinite alternate-reverse;
}

/* Hover animations for service cards (from design) */
.svc-card {
  transition: border-color .2s, transform .25s var(--ease-out), box-shadow .25s;
}
.svc-card::before {
  transform: scaleX(0.4); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.svc-card:hover {
  border-color: rgba(10,14,26,.15);
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -18px rgba(10,14,26,.12);
}
.svc-card:hover::before { transform: scaleX(1); }

/* Plugin card hover (from design) */
.plugin-card {
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-out);
}
.plugin-card:hover {
  border-color: rgba(10,14,26,.15);
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -18px rgba(10,14,26,.12);
}
.plugin-icon {
  transition: transform .35s var(--ease-spring);
}
.plugin-card:hover .plugin-icon { transform: rotate(-8deg) scale(1.06); }
.plugin-card .more .arr { transition: transform .25s var(--ease-out); }
.plugin-card:hover .more .arr { transform: translateX(5px); }

/* Review hover (from design) */
.review {
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.review:hover {
  border-color: rgba(10,14,26,.15);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(10,14,26,.1);
}

/* Split card hover enhancement */
.split-card {
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-out);
}
.split-card:hover {
  border-color: rgba(10,14,26,.15);
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -18px rgba(10,14,26,.12);
}

/* ============================================
   SITE-WIDE HOVER ANIMATIONS (all cards/tiles)
   ============================================ */
.feature-tile {
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-out);
}
.feature-tile:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgba(56,111,251,.15);
}
.icon-tile {
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-out);
}
.icon-tile:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgba(56,111,251,.15);
}
.step {
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-out);
}
.step:hover {
  border-color: rgba(10,14,26,.15);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgba(10,14,26,.1);
}
.tier {
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-out);
}
.tier:hover {
  border-color: rgba(10,14,26,.15);
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -18px rgba(10,14,26,.12);
}
.value {
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-out);
}
.value:hover {
  border-color: rgba(10,14,26,.15);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(10,14,26,.08);
}
.usecase {
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-out);
}
.usecase:hover {
  border-color: rgba(10,14,26,.15);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(10,14,26,.08);
}
.faq-item {
  transition: background .15s;
}
.faq-item:hover {
  background: rgba(56,111,251,.02);
}
.admin-screen, .admin-mock, .pagespeed-card {
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.admin-screen:hover, .admin-mock:hover, .pagespeed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(10,14,26,.18);
}

/* ============================================================
   FluxPress v1.3.0 — AEO / GEO components
   ============================================================ */

/* Author photo (when a founder photo is set in the Customizer) */
.author-card img.av { object-fit: cover; }
.author-card .credentials {
  font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 6px;
}

/* Answer / TL;DR block (AEO) */
.answer-block {
  position: relative;
  margin: 0 0 28px;
  padding: 20px 22px 20px 24px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-lg);
}
.answer-block .answer-label {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); font-weight: 600; margin-bottom: 6px;
}
.answer-block p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.prose .answer-block p { margin: 0; }

/* ============================================================
   Comparison tables (plugin landing pages)
   ============================================================ */
.cmp-wrap {
  margin-top: 38px;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.cmp-table {
  width: 100%; min-width: 860px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14.5px;
}
.cmp-table th, .cmp-table td {
  padding: 14px 16px; text-align: center;
  border-bottom: 1px solid var(--hairline-2);
}
.cmp-table thead th {
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--bg); border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.cmp-table tbody th[scope="row"] {
  text-align: left; font-weight: 600; color: var(--ink-2);
  white-space: nowrap;
}
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table .cmp-us {
  background: var(--primary-50);
  border-left: 1px solid var(--primary-100);
  border-right: 1px solid var(--primary-100);
}
.cmp-table thead th.cmp-us { color: var(--primary); background: var(--primary-100); }
.cmp-table .yes  { color: #027b41; font-weight: 600; }
.cmp-table .no   { color: var(--muted); }
.cmp-table .mid  { color: var(--accent); font-weight: 600; }
.cmp-note {
  margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.6;
}
.cmp-takeaway {
  margin-top: 30px; padding: 26px 28px;
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.cmp-takeaway h3 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 10px; }
.cmp-takeaway p { color: var(--body); font-size: 15.5px; line-height: 1.65; margin: 0; }
.cmp-takeaway a { color: var(--primary); font-weight: 600; }

@media (max-width: 600px) {
  .answer-block { padding: 16px 18px; }
  .answer-block p { font-size: 15.5px; }
}

/* ============================================================
   FluxPress v1.3.1 — listing-page link cards (/plugins/, /services/)
   ============================================================ */
.icon-tile.is-link { text-decoration: none; color: inherit; cursor: pointer; }
.icon-tile.is-link:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow); }
.icon-tile .tile-tag {
  display: inline-block; margin-left: 6px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.02em; color: var(--primary);
  background: var(--primary-50); padding: 2px 8px; border-radius: 999px;
  vertical-align: middle;
}
.icon-tile .tile-cta {
  margin-top: auto; padding-top: 8px;
  font-size: 14px; font-weight: 600; color: var(--primary);
}
.icon-tile.is-link:hover .arr { transform: translateX(4px); }
.icon-tile .arr { transition: transform .2s var(--ease-out); display: inline-block; }
/* tile accent variants reuse the dropdown colour scheme */
.icon-tile.s2 .ic { background: var(--success-50); color: var(--success); }
.icon-tile.s3 .ic { background: var(--accent-50); color: #b3551c; }

/* ── 404 site search (backs the SearchAction schema) ─────────────────────── */
.search-404 {
  display: flex; gap: 10px; justify-content: center; align-items: stretch;
  margin-top: 28px; flex-wrap: wrap;
}
.search-404 input[type="search"] {
  width: min(360px, 100%);
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card, #fff);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-404 input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50, rgba(37,99,235,.12));
}
/* WP core a11y utility (used by search label, skip links, comment form) */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--bg); clip: auto !important; clip-path: none;
  color: var(--ink); display: block; font-size: 14px; font-weight: 600;
  height: auto; left: 5px; line-height: normal; padding: 12px 20px;
  text-decoration: none; top: 5px; width: auto; z-index: 100000;
}


/* ---- SureCart dashboard heading root (audit O-05) ---- */
.sc-dashboard-title {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
