/* Portal surface polish. The approved scene, its mount and motion stay intact. */
body.home-body.neo-portal-brand-background {
  --np-glass: rgba(255, 255, 255, .97);
  --np-ui-edge: rgba(87, 113, 167, .25);
  --np-ui-edge-lit: rgba(71, 125, 185, .46);
  --np-ui-sheen: rgba(255, 255, 255, .88);
  --np-ui-glow: rgba(88, 126, 221, .075);
  --np-ui-shadow: rgba(26, 47, 88, .07);
  --np-ui-control: rgba(251, 253, 255, .96);
  --np-ui-hover: #f0f5ff;
  --np-ui-accent: #175c80;
  --np-ui-violet: #6150ac;
  --np-ui-gold: #795726;
  --np-ui-rose: #8d3562;
  --np-ui-action: linear-gradient(125deg, #4e64c8, #6852bb);
  --np-ui-radius: 20px;
  --neo-nav-h: 40px;
  --neo-nav-radius: 12px;
  --neo-nav-px: 12px;
  --neo-nav-fs: 13px;
}
html[data-theme="dark"] body.home-body.neo-portal-brand-background {
  --np-glass: rgba(8, 23, 46, .94);
  --np-ui-edge: rgba(157, 180, 224, .25);
  --np-ui-edge-lit: rgba(139, 212, 245, .48);
  --np-ui-sheen: rgba(216, 236, 255, .12);
  --np-ui-glow: rgba(94, 130, 237, .10);
  --np-ui-shadow: rgba(0, 4, 16, .15);
  --np-ui-control: rgba(15, 31, 55, .96);
  --np-ui-hover: #172b48;
  --np-ui-accent: #9ae9fa;
  --np-ui-violet: #d2c6ff;
  --np-ui-gold: #efd49c;
  --np-ui-rose: #f1b6d7;
  --np-ui-action: linear-gradient(125deg, #4e63c4, #7457ce);
}

/* One outline and light treatment for the navigation, panels and cards. */
body.neo-portal-brand-background :is(.home-header, .neo-portal-hero-copy, .pc-strip-head, .home-section-header, .home-alltools-controls, .tool-card, .task-card, .pc-card, .home-footer),
body.home-body.neo-portal-brand-background #neo-marketing-stats .neo-mstats-card {
  border: 1px solid var(--np-ui-edge);
  border-radius: var(--np-ui-radius);
  background: var(--np-glass);
  box-shadow: inset 0 1px 0 var(--np-ui-sheen), 0 8px 24px var(--np-ui-shadow), 0 0 18px var(--np-ui-glow);
}
/* Use the real panel boundary: no outlines protruding beyond page margins. */
body.neo-portal-brand-background :is(.neo-portal-hero-copy, .pc-strip-head, .home-section-header, .home-alltools-controls)::before {
  /* The earlier shared selector includes #searchCount, raising its specificity. */
  content: none !important;
}
body.neo-portal-brand-background .home-header {
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 16px;
}
body.neo-portal-brand-background .home-header-actions {
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
body.neo-portal-brand-background .home-header-actions :is(.home-header-link, .home-header-btn, .neo-lang-btn, .neo-theme-toggle, .home-profile-btn) {
  justify-content: center;
  min-height: var(--neo-nav-h);
  height: var(--neo-nav-h);
  border: 1px solid var(--np-ui-edge);
  border-radius: var(--neo-nav-radius);
  background: var(--np-ui-control);
  color: var(--pub-text);
  box-shadow: inset 0 1px 0 var(--np-ui-sheen);
  font-size: var(--neo-nav-fs);
  font-weight: 600;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
body.neo-portal-brand-background .home-header-actions .home-header-link {
  padding-inline: var(--neo-nav-px);
}
body.neo-portal-brand-background .home-header-actions .home-header-link[data-i18n="nav.neoPortal"] {
  color: var(--np-ui-accent);
  border-color: var(--np-ui-edge-lit);
}
/* Required to supersede the existing white !important product-link rules. */
body.neo-portal-brand-background .home-header-actions .neo-academy-link {
  color: var(--np-ui-violet) !important;
}
body.neo-portal-brand-background .home-header-actions .neo-business-link {
  color: var(--np-ui-gold) !important;
}
body.neo-portal-brand-background .home-header-actions :is(.home-header-link, .home-header-btn, .neo-lang-btn, .neo-theme-toggle):hover {
  background: var(--np-ui-hover);
  border-color: var(--np-ui-edge-lit);
  box-shadow: inset 0 1px 0 var(--np-ui-sheen), 0 0 16px var(--np-ui-glow);
}
body.neo-portal-brand-background .home-header-actions .home-profile-btn[data-auth-state="guest"] {
  background: var(--np-ui-action);
  color: #fff;
  border-color: rgba(180, 180, 251, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 4px 14px var(--np-ui-glow);
  animation: none;
}
body.neo-portal-brand-background .home-profile-btn[data-auth-state="guest"] .home-profile-icon {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.neo-portal-brand-background .home-profile-btn[data-auth-state="guest"] .home-profile-cta-line {
  font-size: var(--neo-nav-fs);
  font-weight: 600;
}
body.neo-portal-brand-background .home-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  max-width: calc(100vw - 28px);
}

body.neo-portal-brand-background .neo-portal-hero-copy {
  width: min(100%, 860px);
  padding: 24px;
}
body.neo-portal-brand-background .home-hero :is(h1, p) { opacity: 1; }
body.neo-portal-brand-background .home-hero h1 { color: var(--pub-text); }
body.neo-portal-brand-background :is(.home-hero p, .tool-card-desc, .task-card-text p, .neo-mstats-label) {
  color: var(--pub-text2);
}
body.neo-portal-brand-background :is(.home-section-sub, .tool-provider, .home-footer-copy) {
  color: var(--pub-text3);
}

/* One search surface; the old dark wrapper used to leave square corners. */
body.neo-portal-brand-background .home-search-wrap {
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}
body.neo-portal-brand-background .home-search {
  min-height: 56px;
  border: 1px solid var(--np-ui-edge-lit);
  border-radius: 16px;
  background: var(--np-ui-control);
  color: var(--pub-text);
  box-shadow: inset 0 1px 0 var(--np-ui-sheen), 0 0 20px var(--np-ui-glow);
}
body.neo-portal-brand-background .home-search::placeholder { color: var(--pub-text3); opacity: 1; }
body.neo-portal-brand-background .home-search:focus {
  border-color: var(--np-ui-accent);
  box-shadow: 0 0 0 3px var(--np-ui-glow), inset 0 1px 0 var(--np-ui-sheen);
}
body.neo-portal-brand-background .home-search-submit-btn {
  background: var(--np-ui-action);
  border: 1px solid rgba(180, 180, 251, .4);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
body.neo-portal-brand-background .home-search-wrap .neo-speech-mic-btn:not(:disabled):not([data-speech-state="listening"]):not([data-speech-state="error"]):not([data-speech-state="ready"]) {
  background: var(--np-ui-hover);
  color: var(--pub-text2);
  opacity: 1;
  border-radius: 10px;
}
/* Solid ink paints above its surface; clipped gradient text painted beneath it. */
body.home-body.neo-portal-counter-refine.neo-portal-brand-background #searchCount.home-search-count {
  padding: 9px 18px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--np-ui-accent);
  -webkit-text-fill-color: currentColor;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  text-shadow: 0 0 16px var(--np-ui-glow);
}
body.neo-portal-brand-background #searchCount::before {
  inset: 0;
  border-color: var(--np-ui-edge);
  border-radius: 12px;
  background: var(--np-ui-control);
  box-shadow: inset 0 1px 0 var(--np-ui-sheen), 0 0 16px var(--np-ui-glow);
}
body.neo-portal-brand-background :is(.pc-strip-head, .home-section-header, .home-alltools-controls) { padding: 16px 18px; }
body.neo-portal-brand-background .home-section-header { margin-bottom: 16px; gap: 14px; }
body.neo-portal-brand-background .home-section-header .home-section-sub { margin-bottom: 0; }
body.neo-portal-brand-background .pc-strip-head { gap: 14px; }
body.neo-portal-brand-background :is(.home-section-more, .pc-strip-cta-link) { color: var(--np-ui-violet); }

/* Card edges catch the same light; labels stay legible over the moving scene. */
body.neo-portal-brand-background :is(.tool-card, .task-card, .pc-card):hover {
  background: var(--np-glass);
  border-color: var(--np-ui-edge-lit);
  box-shadow: inset 0 1px 0 var(--np-ui-sheen), 0 8px 24px var(--np-ui-shadow), 0 0 24px var(--np-ui-glow);
}
body.neo-portal-brand-background .tool-card-preview { border-bottom: 1px solid var(--np-ui-edge); }
body.neo-portal-brand-background .tool-card-body { padding: 18px; }
body.neo-portal-brand-background .tool-card-name { color: var(--pub-text); font-size: 16px; }
body.neo-portal-brand-background .tool-card-desc { font-size: 14px; }
body.neo-portal-brand-background :is(.tool-tag, .tool-card-primary-label) {
  border: 1px solid var(--np-ui-edge);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.2;
  background: var(--np-ui-control);
  color: var(--pub-text2);
}
body.neo-portal-brand-background .tool-tag-cat { color: var(--np-ui-violet); }
body.neo-portal-brand-background .tool-card-primary-label-creator-choice { color: var(--np-ui-rose); }
body.neo-portal-brand-background .tool-card-sample-badge {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--np-ui-control);
  color: var(--np-ui-violet);
  font-size: 12px;
}
body.neo-portal-brand-background .tool-card-cta {
  min-height: 36px;
  padding: 7px 18px;
  border: 1px solid rgba(180, 180, 251, .42);
  border-radius: 12px;
  background: var(--np-ui-action);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 12px var(--np-ui-glow);
}
body.neo-portal-brand-background .home-footer { padding: 28px 20px 24px; }
body.neo-portal-brand-background .home-footer-links { gap: 8px 20px; }
body.neo-portal-brand-background .home-footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 5px 4px;
  color: var(--pub-text2);
  font-size: 14px;
  line-height: 1.4;
  border-radius: 8px;
}
body.neo-portal-brand-background .home-footer-links a:hover { color: var(--np-ui-accent); background: var(--np-ui-control); }
body.neo-portal-brand-background :is(.home-header-actions a, .neo-lang-btn, .neo-theme-toggle, .home-profile-btn, .home-footer-links a):focus-visible {
  outline: 2px solid var(--np-ui-accent);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  body.neo-portal-brand-background .home-header { justify-content: center; }
  body.neo-portal-brand-background .home-header-actions { width: 100%; justify-content: center; }
}
@media (max-width: 700px) {
  body.neo-portal-brand-background .home-header { padding: 16px 12px; gap: 14px; }
  body.neo-portal-brand-background .home-header-actions {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 7px 6px;
  }
  body.neo-portal-brand-background .home-header-actions > .home-header-link { grid-column: span 4; }
  body.neo-portal-brand-background .home-header-actions > .home-header-btn { grid-column: span 3; }
  body.neo-portal-brand-background #langSelectorMount { grid-column: span 4; }
  body.neo-portal-brand-background #themeToggleMount { grid-column: span 2; display: flex; justify-content: center; }
  body.neo-portal-brand-background .home-header-actions > .home-profile-btn { grid-column: span 3; }
  body.neo-portal-brand-background .home-header-actions :is(.home-header-link, .home-header-btn, .neo-lang-btn, .home-profile-btn) {
    width: 100%;
    padding-inline: 6px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
  body.neo-portal-brand-background #langSelectorMount .neo-lang-selector { display: block; }
  body.neo-portal-brand-background .neo-portal-hero-copy { padding: 22px 16px; }
  body.home-body.neo-portal-counter-refine.neo-portal-brand-background #searchCount.home-search-count { font-size: 18px; }
  body.neo-portal-brand-background :is(.pc-strip-head, .home-section-header, .home-alltools-controls) { padding: 16px; }
  body.neo-portal-brand-background .pc-strip-title { flex-wrap: wrap; gap: 10px; }
  body.neo-portal-brand-background .home-section-header { flex-wrap: wrap; }
  body.neo-portal-brand-background .home-footer { padding: 24px 16px; }
  body.neo-portal-brand-background .home-footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
  body.neo-portal-brand-background .home-footer-links a:last-child { grid-column: 1 / -1; }
  body.neo-portal-brand-background .home-footer-links a { font-size: 13px; }
}
@media (max-width: 360px) {
  body.neo-portal-brand-background .home-header-actions :is(.home-header-link, .home-header-btn, .neo-lang-btn) { font-size: 12px; padding-inline: 4px; }
  body.neo-portal-brand-background .home-profile-btn[data-auth-state="guest"] { gap: 3px; }
}

/* v5/v6: compact navigation, denser surfaces and prominent price savings. */
body.home-body.neo-portal-brand-background { --np-price-saving: #17694d; }
html[data-theme="dark"] body.home-body.neo-portal-brand-background { --np-price-saving: #9ae9c9; }
body.neo-portal-brand-background .home-header { padding: 12px 14px; gap: 12px; border-radius: 16px; }
body.neo-portal-brand-background .home-header-actions { --neo-nav-h: 36px; --neo-nav-radius: 10px; }
body.neo-portal-brand-background .home-header-actions > .home-header-link {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
body.neo-portal-brand-background .home-header-actions .home-header-link[data-i18n="nav.neoPortal"] {
  background: var(--np-ui-control);
  border-color: var(--np-ui-edge-lit);
  box-shadow: inset 0 1px 0 var(--np-ui-sheen);
}
body.neo-portal-brand-background .home-header-actions :is(.home-header-btn, .neo-lang-btn, .neo-theme-toggle) {
  background: transparent;
  border-color: var(--np-ui-edge);
  box-shadow: none;
}
body.neo-portal-brand-background .home-header-actions .home-profile-btn[data-auth-state="guest"] {
  min-height: 38px;
  height: 38px;
}

body.neo-portal-brand-background #pricingStrip {
  margin-top: 18px;
  padding: 18px 0 24px;
}
body.neo-portal-brand-background #pricingStrip .pc-strip-head {
  padding: 12px 14px;
  gap: 10px 18px;
  margin-bottom: 12px;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 var(--np-ui-sheen);
}
body.neo-portal-brand-background #pricingStrip .pc-strip-title {
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}
body.neo-portal-brand-background #pricingStrip .pc-strip-title-badge {
  padding: 3px 8px;
  border-radius: 7px;
  color: var(--np-price-saving);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
body.neo-portal-brand-background #pricingStrip .pc-strip-cta-link { font-size: 13px; }
/* All ten comparisons remain available in a short horizontal strip. */
body.neo-portal-brand-background #pricingStrip .pc-strip-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: clamp(280px, 29%, 320px);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 1px;
  padding: 2px 1px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--np-ui-edge-lit) transparent;
}
body.neo-portal-brand-background #pricingStrip .pc-card {
  display: flex;
  flex-flow: row wrap;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: 16px;
  scroll-snap-align: start;
}
body.neo-portal-brand-background #pricingStrip .pc-card-name {
  order: 0;
  flex: 0 0 100%;
  align-self: center;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}
body.neo-portal-brand-background #pricingStrip .pc-card-badge {
  order: 2;
  flex: 0 0 auto;
  align-self: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid #329c70;
  border-radius: 12px;
  background: #08683f;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 12px rgba(9, 108, 64, .12);
  font-size: 2rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -.03em;
  white-space: nowrap;
}
/* Convenience badge (trending, not verified cheaper) keeps the same layout as the
   savings badge above but swaps the green treatment for blue, matching .pc-card--convenience. */
body.neo-portal-brand-background #pricingStrip .pc-card-badge--conv {
  border-color: #3B82F6;
  background: #1d4ed8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 12px rgba(29, 78, 216, .12);
}
body.neo-portal-brand-background #pricingStrip .pc-card-prices {
  /* Keep the original markup and values; share a row for credits and savings. */
  display: contents;
}
body.neo-portal-brand-background #pricingStrip .pc-card-neo {
  order: 1;
  flex: 1 1 7.5rem;
  min-width: 0;
  display: block;
}
body.neo-portal-brand-background #pricingStrip .pc-card-neo-label {
  display: block;
  margin-bottom: 4px;
  color: var(--np-ui-accent);
  font-size: .875rem;
  line-height: 1.3;
  letter-spacing: .05em;
}
body.neo-portal-brand-background #pricingStrip .pc-card-neo-val {
  display: block;
  color: var(--pub-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
body.neo-portal-brand-background #pricingStrip .pc-price-amount {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
body.neo-portal-brand-background #pricingStrip .pc-price-unit { color: var(--pub-text); font-size: .875rem; }
body.neo-portal-brand-background #pricingStrip .pc-price-meta {
  display: block;
  margin-top: 4px;
  color: var(--pub-text2);
  font-size: 12px;
  line-height: 1.4;
}
body.neo-portal-brand-background #pricingStrip .pc-card-official {
  order: 3;
  flex: 0 0 100%;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 6px;
}
body.neo-portal-brand-background #pricingStrip .pc-card-official-label { font-size: .8125rem; color: var(--pub-text2); }
body.neo-portal-brand-background #pricingStrip .pc-card-official-val {
  font-size: .875rem;
  line-height: 1.4;
  color: var(--pub-text2);
  /* Keep the base stylesheet's strikethrough on the crossed-out provider
     price (pricing-compare.css) -- this brand-background pass isn't
     restyling the strikethrough itself, just this card's spacing/colors. */
}
body.neo-portal-brand-background #pricingStrip .pc-card-note {
  order: 4;
  flex: 0 0 100%;
  margin: 0;
  padding-top: 9px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--pub-text3);
}
body.neo-portal-brand-background .home-footer {
  padding: 18px 18px 16px;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 var(--np-ui-sheen);
}
body.neo-portal-brand-background .home-footer-links { margin-bottom: 10px; gap: 6px 16px; }
body.neo-portal-brand-background .home-footer-links a { min-height: 30px; padding: 4px; font-weight: 500; }
body.neo-portal-brand-background .home-footer-copy { font-size: 12px; }
@media (max-width: 700px) {
  body.neo-portal-brand-background .home-header { padding: 12px; gap: 11px; }
  body.neo-portal-brand-background .home-header-actions { gap: 5px 6px; }
  body.neo-portal-brand-background .home-logo-img { width: 32px; height: 32px; }
  body.neo-portal-brand-background .home-logo-text { font-size: 18px; }
  body.neo-portal-brand-background #pricingStrip .pc-strip-grid { grid-auto-columns: min(320px, calc(100vw - 56px)); }
  body.neo-portal-brand-background #pricingStrip .pc-strip-head { padding: 12px; }
  body.neo-portal-brand-background #pricingStrip .pc-strip-title { font-size: 14px; }
  body.neo-portal-brand-background .home-footer { padding: 18px 14px 16px; }
  body.neo-portal-brand-background .home-footer-links { gap: 6px 8px; }
}
@media (max-width: 360px) {
  body.neo-portal-brand-background #pricingStrip .pc-card { padding: 14px; gap: 10px; }
  body.neo-portal-brand-background #pricingStrip .pc-card-badge { font-size: 1.75rem; padding: 9px; }
}
@media (prefers-reduced-transparency: reduce) {
  body.home-body.neo-portal-brand-background,
  html[data-theme="dark"] body.home-body.neo-portal-brand-background { --np-glass: var(--np-solid); }
}
