.stitch-header [data-purpose="nav-links"] {
  position: relative;
  isolation: isolate;
}
.stitch-header [aria-current="page"] {
  color: #00f2fe;
  border-color: rgb(0 242 254 / 35%);
  background: rgb(0 242 254 / 15%);
}
.stitch-header .header-subscription {
  display: inline-flex;
  color: #fcd34d;
  border: 1px solid rgb(245 158 11 / 40%);
  background: rgb(245 158 11 / 10%);
}
.stitch-header .header-subscription:hover { background: rgb(245 158 11 / 20%); }
[data-stitch] [class~="text-lime-signal"] { color: #f59e0b; }
[data-stitch] [class~="bg-lime-signal/20"] { background-color: rgb(245 158 11 / 20%); }
.stitch-user-login {
  position: relative;
  isolation: isolate;
  text-decoration: none;
}
.stitch-user-login::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--stitch-login-glow), transparent 58%, #fef3c7 72%, #fbbf24 79%, transparent 87%);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  animation: stitch-login-edge 3.8s linear infinite;
}
@property --stitch-login-glow { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes stitch-login-edge { to { --stitch-login-glow: 360deg; } }
#savings-inline-login { scroll-margin-top: 6rem; }
#tools { scroll-margin-top: 7rem; }
#tools .product-item[hidden] { display: none; }
#catalog-filters .filter-btn[aria-pressed="true"] { background: #00f2fe; color: #0a0b10; }
#catalog-filters .filter-btn[aria-pressed="false"] { background: #292a2f; color: #c5cfdd; box-shadow: none; }
.stitch-blog-search,.stitch-blog-pagination { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-block: 1rem; }
.stitch-blog-search label { display: grid; gap: .3rem; color: #e0fdff; min-width: min(100%,20rem); }
.stitch-blog-search input,.stitch-blog-search button { border: 1px solid #3b4966; border-radius: 1rem; background: #161926; color: #f8fafc; padding: .75rem; }
.stitch-blog-search button { color: #00f2fe; }
.stitch-blog-cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
.stitch-blog-card { overflow: hidden; min-width: 0; background: #0f111a; border: 1px solid #23293e; border-radius: .85rem; }
.stitch-blog-card:hover { box-shadow: 0 12px 36px rgb(0 242 254 / 12%); transform: translateY(-2px); }
.stitch-blog-card { transition: transform .2s ease,box-shadow .2s ease; }
.stitch-blog-card > div { padding: 1.4rem; }
.stitch-blog-card h3 { color: #f8fafc; font-size: 1.4rem; font-weight: 700; margin-block: .5rem; }
.stitch-blog-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.stitch-blog-meta,.stitch-blog-read,.stitch-tags { color: #00f2fe; }
.stitch-featured { grid-column: 1/-1; display: flex; align-items: center; }
.stitch-featured figure { flex: 1 1 48%; min-width: 0; }
.stitch-featured > div { flex: 1 1 52%; }
.stitch-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-block: .65rem; }
.stitch-tags li { padding: .25rem .5rem; border-radius: 1rem; background: #16313c; font-size: .8rem; }
@media(max-width:850px) {
  .stitch-blog-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:540px) {
  .stitch-blog-cards { grid-template-columns: minmax(0,1fr); }
  .stitch-featured { display: block; }
  .stitch-header .capsule-inner-content { gap: .4rem; padding-inline: .55rem; }
  .stitch-header [data-purpose="brand-logo"] { gap: .35rem; }
  .stitch-header [data-purpose="brand-logo"] > span { font-size: 1.05rem; }
  .stitch-header [data-purpose="brand-logo"] > div { width: 2rem; height: 2rem; }
  .stitch-header .header-subscription { min-width: 0; padding: .45rem; white-space: nowrap; }
  .stitch-header .header-subscription svg { display: none; }
  .stitch-header [data-search-open],.stitch-header [data-header-menu] { width: 2rem; min-width: 2rem; min-height: 2rem; padding: .3rem; }
}
.stitch-menu-button { display: none; color: #e0fdff; padding: .5rem; }
.stitch-mobile-menu {
  position: absolute;
  inset: 100% 1rem auto;
  display: grid;
  gap: .25rem;
  max-height: 65vh;
  overflow: auto;
  border: 1px solid #23293e;
  border-radius: 1rem;
  padding: .5rem;
  background: #0f111a;
}
.stitch-mobile-menu[hidden] { display: none; }
.stitch-mobile-menu a { padding: .6rem .85rem; border-radius: .65rem; }
[data-stitch] [data-request-form] { scroll-margin-top: 6rem; }
[data-stitch] .refine-status:empty { display: none; }
@media(max-width:1099px) {
  .stitch-menu-button { display: inline-flex; }
  .stitch-header [data-purpose="nav-links"] { display: none; }
  [data-stitch] main { overflow-x: clip; }
}

html:has(body[data-stitch]) { scroll-padding-top: 5.5rem; }
[data-stitch] :is(#tools, #savings-inline-login, [data-request-form]) { scroll-margin-top: 0; }
[data-stitch] {
  --stitch-action-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --stitch-action-gradient: linear-gradient(135deg, #f59e0b, #ea580c);
  --stitch-action-hover: linear-gradient(135deg, #fbbf24, #f97316);
  --stitch-action-ink: #05070e;
  --stitch-focus: #67e8f9;
  --stitch-card-lift: -4px;
}
[data-stitch] .stitch-header {
  padding-bottom: 8px;
  background-color: #0a0e18;
  box-shadow: 0 1px rgb(148 163 184 / 12%), 0 6px 14px rgb(0 0 0 / 22%);
}
[data-stitch] .stitch-header.sticky { position: sticky; top: 0; z-index: 50; }
.stitch-header :is([data-purpose="nav-links"], .stitch-mobile-menu) a {
  font: 500 .875rem/1.35 var(--stitch-action-font);
  letter-spacing: .01em;
  text-transform: none;
}
.stitch-header [data-purpose="nav-links"] a { white-space: nowrap; }
.stitch-header :is([data-purpose="nav-links"], .stitch-mobile-menu) a[aria-current="page"] { font-weight: 600; }
@media(hover:hover) and (pointer:fine) {
  .stitch-header :is([data-purpose="nav-links"], .stitch-mobile-menu) a:hover {
    color: #a5f3fc;
    background-color: rgb(34 211 238 / 13%);
  }
}

/* Rounded actions share the header CTA's type without inheriting its color. */
[data-stitch] :is(.header-subscription, .refine-button, .stitch-blog-read,
  main a[class*="rounded"][class*="py-"], main button[class*="rounded"][class*="py-"], .stitch-blog-search button) {
  font-family: var(--stitch-action-font);
  font-size: clamp(.8125rem, .79rem + .12vw, .9375rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: .005em;
  text-align: center;
  text-transform: none;
  min-width: 0;
  max-width: 100%;
}
[data-stitch] :is(.header-subscription, .refine-button, .stitch-user-login,
  main a[class*="rounded"][class*="py-"], main button[class*="rounded"][class*="py-"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow-wrap: anywhere;
}
[data-stitch] :is(.header-subscription, .refine-button.primary, .stitch-user-login,
  main a[href^="/request-subscription/"][class*="rounded"],
  main button[type="submit"], main :is(a,button)[class~="bg-synivox-volt"]) { font-weight: 600; }
[data-stitch] .stitch-header .header-subscription { min-width: auto; }
[data-stitch] :is(.header-subscription, .refine-button.primary,
  main :is(a,button)[class~="bg-synivox-volt"],
  main :is(a,button)[class~="from-amber-500"][class~="to-orange-500"]) {
  background: var(--stitch-action-gradient);
  color: var(--stitch-action-ink);
}
[data-stitch] main a[href^="/request-subscription/"][class~="bg-surface-overlay"] {
  background: var(--stitch-action-gradient);
  color: var(--stitch-action-ink);
  border-color: transparent;
}
[data-stitch] #featured-products a[href^="/products/"][class*="rounded"] {
  background: #161926;
  color: #f8fafc;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgb(148 163 184 / 25%);
}
[data-stitch] :is(.header-subscription, .refine-button, .stitch-blog-read, .stitch-blog-search button,
  main :is(a,button)[class*="rounded"][class*="py-"]):focus-visible {
  outline: 2px solid var(--stitch-focus);
  outline-offset: 3px;
}
[data-stitch] :is(button:disabled, [aria-disabled="true"]) { opacity: .65; cursor: not-allowed; }
@media(hover:hover) and (pointer:fine) {
  [data-stitch] :is(.header-subscription, .refine-button.primary, main :is(a,button)[class~="bg-synivox-volt"],
    main :is(a,button)[class~="from-amber-500"][class~="to-orange-500"],
    main a[href^="/request-subscription/"][class~="bg-surface-overlay"]):hover { background: var(--stitch-action-hover); }
  [data-stitch] #featured-products a[href^="/products/"][class*="rounded"]:hover {
    background: #1e293c;
    box-shadow: inset 0 0 0 1px rgb(103 232 249 / 37%);
  }
}

/* Match the existing software-access lift on other standalone cards. */
[data-stitch] main :is(.product-item, .stitch-blog-card, .refine-plan, .interactive-lift-card, .interactive-violet-card, .interactive-emerald-card, .interactive-amber-card, .refine-card:not(article:has(.editorial-prose)),
  section:not([id="contact"]) :is(div,article)[class~="rounded-xl"][class*="bg-surface-"]:has(> :is(h2,h3,h4), > div > :is(h2,h3,h4))):not(:has(form)) {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
@media(hover:hover) and (pointer:fine) {
  [data-stitch] main :is(.product-item, .stitch-blog-card, .refine-plan, .interactive-lift-card, .interactive-violet-card, .interactive-emerald-card, .interactive-amber-card, .refine-card:not(article:has(.editorial-prose)),
    section:not([id="contact"]) :is(div,article)[class~="rounded-xl"][class*="bg-surface-"]:has(> :is(h2,h3,h4), > div > :is(h2,h3,h4))):not(:has(form)):hover {
    transform: translateY(var(--stitch-card-lift));
    border-color: rgb(103 232 249 / 34%);
    box-shadow: 0 14px 32px rgb(0 0 0 / 37%), 0 0 22px rgb(34 211 238 / 12%);
  }
}
[data-stitch] main :is(#contact > div:has(#home-contact-form), div[class~="rounded-xl"]:has(> #contact-form)) {
  transition: box-shadow 220ms ease, border-color 220ms ease;
}
@media(hover:hover) and (pointer:fine) {
  [data-stitch] main :is(#contact > div:has(#home-contact-form), div[class~="rounded-xl"]:has(> #contact-form)):hover {
    border-color: rgb(103 232 249 / 36%);
    box-shadow: 0 20px 52px rgb(0 0 0 / 57%), 0 0 28px rgb(34 211 238 / 16%), inset 0 0 0 1px rgb(103 232 249 / 19%);
  }
}
[data-stitch] main :is(#contact > div:has(#home-contact-form), div[class~="rounded-xl"]:has(> #contact-form)):focus-within {
  box-shadow: 0 18px 42px rgb(0 0 0 / 50%), 0 0 24px rgb(34 211 238 / 14%), inset 0 0 0 1px rgb(103 232 249 / 25%);
}
@media(prefers-reduced-motion:reduce) {
  [data-stitch] { --stitch-card-lift: 0px; }
  [data-stitch] *, [data-stitch] *::before, [data-stitch] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-stitch] main :is(.product-item, .stitch-blog-card, .refine-card, [class*="interactive-"]):hover {
    transform: none !important;
  }
}
